How to define route group name in laravel

后端 未结 4 623
予麋鹿
予麋鹿 2020-12-15 17:05

Is there any way to define the name of route group in laravel?

What I\'m trying to accomplish by this is to know that the current request belongs to which group so I

4条回答
  •  再見小時候
    2020-12-15 17:33

    Try this

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

提交回复
热议问题