“pengontrol grup rute Laravel” Kode Jawaban

Rute Laravel :: Definisi Grup

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

Kelompok pengontrol rute Laravel 9

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

pengontrol grup rute Laravel

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

kelompok rute di Laravel

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

Pengontrol Rute Laravel Group

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

Rute Laravel

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

Jawaban yang mirip dengan “pengontrol grup rute Laravel”

Pertanyaan yang mirip dengan “pengontrol grup rute Laravel”

Lebih banyak jawaban terkait untuk “pengontrol grup rute Laravel” di PHP

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya