“Routengruppencontroller Laravel” 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 9 Routenkontrollergruppe

use App\Http\Controllers\OrderController;
 
Route::controller(OrderController::class)->group(function () {
    Route::get('/orders/{id}', 'show');
    Route::post('/orders', 'store');
});
Shadow

Routengruppencontroller Laravel

use App\Http\Controllers\OrderController;
 
Route::controller(OrderController::class)->group(function () {
    Route::get('/orders/{id}', 'show');
    Route::post('/orders', 'store');
});
Irfan

Routengruppe in Laravel

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

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

Laravel -Route

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

Ähnliche Antworten wie “Routengruppencontroller Laravel”

Fragen ähnlich wie “Routengruppencontroller Laravel”

Weitere verwandte Antworten zu “Routengruppencontroller Laravel” auf PHP

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen