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

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

rute grup Laravel

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

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 Group Laravel 8

use App\Http\Livewire\Invoices;
Route::group(['middleware' => ['auth'], 'prefix' => 'invoices', 'as' => 'invoices.'], function(){
    Route::get('/', [Invoices::class, 'index'])->name('invoices'); //Invoices@index not found class Invoices
)};
Good Grouse

Jawaban yang mirip dengan “Rute Group Laravel 8”

Pertanyaan yang mirip dengan “Rute Group Laravel 8”

Lebih banyak jawaban terkait untuk “Rute Group Laravel 8” di PHP

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya