有没有办法结合这两条路线?
Route::get('project/(:any)', 'dashboard.project@(:1)');
Route::get('project/(:any)/(:any)', 'dashboard.project@(:1)');
我问是因为第二条路线,我必须添加它才能使以下请求起作用:
site.com/project/new => method
site.com/project/view/12351326 => method and parameter