dingo / api

A RESTful API package for the Laravel and Lumen frameworks.
BSD 3-Clause "New" or "Revised" License
9.33k stars 1.25k forks source link

Add getMiddleware function to Route class #1537

Closed gazben closed 6 years ago

gazben commented 6 years ago

The getMiddleware function is missing and reported here: https://github.com/flipboxstudio/lumen-generator/issues/25 Also I think you have to be able to query the middlewares.

If the function is not necessary and you can query the middlewares with another method, please write it in the comments.

telefoontoestel commented 6 years ago

I noticed that this issue has not been released yet and I would like to submit a suggestion. Within the Laravel own Route class there is a method called gatherMiddleware that collects the middleware of the route. Shouldn't the method at least be called the same, since it is used in the same manner?