Route::group( ['prefix' => 'admin', 'as' => 'admin.', 'namespace' => 'Admin'], function () { Route::group(['as' => 'user.'], function(){ Route::get('custom', [ 'as' => 'custom', 'uses' => 'UserController@custom' ]); // Results in admin.user.custom }); Route::resource('user', 'UserController'); // Route names // admin.admin.user.index // admin.admin.user.create // admin.admin.user.store // etc.. });
from : https://github.com/laravel/framework/issues/13903
沒有留言:
張貼留言