LaravelCollective / annotations

Route and Event Annotations for the Laravel Framework
MIT License
365 stars 73 forks source link

Defining parent method disables annotated routes #29

Closed hackel closed 6 years ago

hackel commented 9 years ago

All of my controllers extend an abstract base controller. If I define an update() method in that base controller, route annotations stop working on all controllers that extend from that base. I'm using @resource controllers. There are no route annotations at all in the base controller. If I try to add a route annotation (e.g. @get) to the update() method in the base controller, the route does show up, and picks my last (alphabetically) child controller's update method as the action.

If I change the name of the update method in my parent controller, everything works fine, so I will do that for now as a temporary work-around.

tshafer commented 6 years ago

We accept pull requests.