CommanderTrait method getCommandBus detected as Controller action
Closed this issue · 1 comments
MartelliEnrico commented
I have the CommanderTrait in one of my Controller (not resource) and when I see the list of routes, the route uri/command-bus comes out because the method start with get, or is public (or probably both). A quick fix might be setting the method visibility to protected, since no-one will call a method from a Controller.
Here's the route:
| | GET|HEAD auth/command-bus/{one?}/{two?}/{three?}/{four?}/{five?} | | Pixel\Http\Controllers\Auth\AuthController@getCommandBus | | |
MartelliEnrico commented
Closing