Answers for "laravel route groups controler"

PHP
1

laravel route group name

Route::group(['prefix'=>'accounts','as'=>'account.'], function(){
    Route::get('/', ['as' => 'index', 'uses' => 'AccountController@index']);
    Route::get('connect', ['as' => 'connect', 'uses' = > 'AccountController@connect']);
});
Posted by: Guest on March-01-2022
2

laravel group routes

Route::group(['prefix' => 'admin'], function () {
    Route::get('users', function ()    {
        // Matches The "/admin/users" URL
    });
});
Posted by: Guest on December-14-2020
0

route group in laravel

Route::group(['prefix' => 'admin']){
	Route::get('/',function(){
    	//...
    });
}
Posted by: Guest on January-30-2021

Browse Popular Code Answers by Language