Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel route group middleware prefix

Route::group(['prefix' => 'admin','middleware' => ['auth:admin']], function() {
    Route::get('dashboard','AdminController@dashboard');
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #route #group #middleware #prefix
ADD COMMENT
Topic
Name
1+4 =