I have a resource controller with all basic routes implemented

  • create
  • store
  • update
  • delete
  • index
  • show

But I need one more route like '/controllerName/otherRoute'... how do I create one?

有帮助吗?

解决方案

Just add that one extra additional route the same as you would any other.

Route::get('another-route', 'ControllerName@anotherRoute');
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top