📅  最后修改于: 2022-03-11 14:54:03.345000             🧑  作者: Mango
Just add a route to that method separately, before you register the resource:
-------------------------------------------------------------------------------
Route::get('foo/bar', 'FooController@bar');
Route::resource('foo', 'FooController');