Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel group route controller

Route::controller(DeviceApiController::class)
    ->prefix('/devices')
    ->as('devices.')
    ->group(function () {
        Route::get('/index', 'index')->name('index');
        Route::get('/{serialNumber}/show', 'show')->name('show');
    });
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #group #route #controller
ADD COMMENT
Topic
Name
6+4 =