📜  使用资源路由如何添加另一个路由 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:03.345000             🧑  作者: Mango

代码示例1
Just add a route to that method separately, before you register the resource:
-------------------------------------------------------------------------------
Route::get('foo/bar', 'FooController@bar');
Route::resource('foo', 'FooController');