Route::group(['prefix' => '/user'], function () { Route::get('/profile', function(){ return 'Profile'; }); Route::get('/password', function(){ return 'Password'; }); });
Route::group(['prefix' => '/user'], function () { Route::get('/profile', function(){ return 'Profile'; }); Route::get('/password', function(){ return 'Password'; }); });