“kelompok rute di 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

Laravel Route Namespace dan awalan

Route::prefix('admin')->group(function () {
    Route::get('/users', function () {
        // Matches The "/admin/users" URL
    });
});
Perfect Plover

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

Nama Grup Rute Laravel

Route::group(['prefix'=>'accounts','as'=>'account.'], function(){
    Route::get('/', ['as' => 'index', 'uses' => 'AccountController@index']);
    Route::get('connect', ['as' => 'connect', 'uses' = > 'AccountController@connect']);
});
Yucky Yak

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

Jawaban yang mirip dengan “kelompok rute di Laravel”

Pertanyaan yang mirip dengan “kelompok rute di Laravel”

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

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya