“Laravel Group Routencontroller” Code-Antworten

Laravel Route :: Gruppendefinition

Route::group(['prefix'=>'accounts','as'=>'account.'], function(){
    Route::get('/', 'AccountController@index')->name('index');
    Route::get('connect', 'AccountController@connect')->name('connect');
});

Route::group(['prefix'=>'quotes','as'=>'quote.'], function(){
    Route::get('/', 'QuoteController@index')->name('index');
    Route::get('connect', 'QuoteController@create')->name('create');
});
Depressed Deer

Laravel Group Routen

Route::group(['prefix' => 'admin'], function () {
    Route::get('users', function ()    {
        // Matches The "/admin/users" URL
    });
});
Almabek

Laravel Group Routencontroller

Route::controller(DeviceApiController::class)
    ->prefix('/devices')
    ->as('devices.')
    ->group(function () {
        Route::get('/index', 'index')->name('index');
        Route::get('/{serialNumber}/show', 'show')->name('show');
    });
Lokesh003

Ähnliche Antworten wie “Laravel Group Routencontroller”

Fragen ähnlich wie “Laravel Group Routencontroller”

Weitere verwandte Antworten zu “Laravel Group Routencontroller” auf PHP

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen