Laravel add custom method to resource controller

Viewed 10856

I'm using laravel 5.2 and I wanted to know if there's an option to include into the resource more methods.

for example, Id'e like to create a POST method called getUsersList which I can limit the results. I know I can just add in the routes separately from the resource a new route, but I would need to do this for every route I do.

What's the best way to do this?

1 Answers
Related