Closed faytekin closed 4 years ago
@jasonlew @specialtactics Can you please merge this?
Sorry, but I don't agree that this is more readable - it creates ambiguity because it is not clear what those array elements mean and what they relate to.
It is also not the way documented on the Laravel docs.
I think there has been a misunderstanding. You can set a route in this way at @specialtactics Laravel's own router. But this feature does not exist in Dingo API. I made it as an option. It does not break the current router. Anyone may use or just continue the current one.
Hey @faytekin that's fine in that case, I just requested one change which is to put a comment donoting what the code does.
Also there is a merge conflict with that file which you need to resolve.
Merged, tagged
Thanks for your contribution !
To have more readable codes, small changes have been done. In Route, Controller names are given as arrays.
Example