路由分类
Route::prefix('admin')->group(function (){ Route::get('/test1','Admin\AdminController@test1'); Route::get('/test2','Admin\AdminController@test2'); }); Route::namespace('Admin')->prefix('admin')->middleware('checkName')->group(function (){ Route::get('/test1/{name}','AdminController@test1'); Route::get('/test2','AdminController@test2'); });
每天坚持,终会抵达!