laravel route 3a 3agroup definition

Solutions on MaxInterview for laravel route 3a 3agroup definition by the best coders in the world

showing results for - "laravel route 3a 3agroup definition"
Louisa
26 Nov 2017
1Route::group(['prefix'=>'accounts','as'=>'account.'], function(){
2    Route::get('/', 'AccountController@index')->name('index');
3    Route::get('connect', 'AccountController@connect')->name('connect');
4});
5
6Route::group(['prefix'=>'quotes','as'=>'quote.'], function(){
7    Route::get('/', 'QuoteController@index')->name('index');
8    Route::get('connect', 'QuoteController@create')->name('create');
9});