Question

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?

Était-ce utile?

La solution

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

Route::get('another-route', 'ControllerName@anotherRoute');
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top