Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel Route group within a group

Route::group(['prefix' => 'user', 'as' => 'user.'], function() {
     Route::get('login', 'UserController@login');
     Route::get('register', 'UserController@register');
     Route::group(['middleware' => 'auth'], function() {
     Route::get('edit', 'UserController@edit');
   });
});
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #Route #group #group
ADD COMMENT
Topic
Name
5+5 =