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
Try this
Route::group(['prefix'=>'accounts','as'=>'account.'], function(){ Route::get('connect', [ 'as' => 'connect', 'uses' => 'AccountController@connect' ]); });