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');
    });
 
PREVIOUS NEXT
Tagged: #laravel #group #route #controller
ADD COMMENT
Topic
Name
3+2 =