“rute grup 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

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

Rute Laravel

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

Laravel Rute Match

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

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

Rute Laravel

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

Jawaban yang mirip dengan “rute grup Laravel”

Pertanyaan yang mirip dengan “rute grup Laravel”

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

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya