“Laravel Group Routen” 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

Routengruppe in Laravel

Route::group(['prefix' => 'admin']){
	Route::get('/',function(){
    	//...
    });
}
azonedev

Laravel -Route

Route::get('user/{id}', function ($id) {
    return 'User '.$id;
});
Enthusiastic Elephant

Laravel Route Match

Route::match(['get', 'post'], '/', function () {
    //
});

Route::any('/', function () {
    //
});
Alberto Peripolli

Laravel -Route

Route::get('user/profile', [UserProfileController::class, 'show'])->name('profile');
Sleepy Sandpiper

Ähnliche Antworten wie “Laravel Group Routen”

Fragen ähnlich wie “Laravel Group Routen”

Weitere verwandte Antworten zu “Laravel Group Routen” auf PHP

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen