Route::group(['before'=>'auth', 'prefix'=>'cms'],function(){Route::get('/', function(){return view('cms.dashboard');});});
According an answer in stackoverflow,
filters are removed in laravel5. Instead you need
to use middleware classes, so replace the auth filter with auth
middleware:
Route::group(['middleware'=>'auth', 'prefix'=>'cms'],function(){Route::get('/', function(){return view('cms.dashboard');});});
No comments :
Post a Comment