How to add new methods to a resource controller in Laravel?
< 1 min readTo add new methods to a resource controller in Laravel, you can simply define the new methods in the controller class. For example, if you have a resource controller called PostController, you can add a new method called search like this: Then, to create a route for the search action, you can define a new…
