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?

Was it helpful?

Solution

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

Route::get('another-route', 'ControllerName@anotherRoute');
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top