-
Notifications
You must be signed in to change notification settings - Fork 11.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[L5.5.13]: Resource route ordering #21384
Comments
Yeah it seems like the list command just needs to be fixed to output the order correctly. If indeed the command should be responsible for that. It definitely makes sense for the "create" to be defined first. |
No doubt. That is the question. If there's a more logical way to get feedback on the order the routes are interpreted...then it should definitely be there. From a UX perspective, When it wasn't in that order, I didn't knwo where else to look (you know what I'm saying?); so, started writing this and said, "I wonder..." then flipped them, which changed the nature of this ticket. :) |
I wouldn't consider this is a bug. More of a proposal that can be made in laravel/internals |
You can use |
@Dylan-DPC: Yeah. Wasn't considering a bug either. Is there a different format to use or something more explicit I can do in the future to differentiate? First time posting. @themsaid: Thanks! Didn't know that was a thing already. |
@joshbruce say the framework states that something works in an |
Description:
See also: #21258
Hmmmm...this seems to be an order of operations problem, which I might have noticed if
route:list
displayed them in the order they are interpreted. There might also be a better way to do what I'm trying to do.index
andshow
are publicly visible.auth
.Steps To Reproduce:
Create (/create) ends up with show (/{your-resource}).
route:list
shows the following.Thereby hiding the "defect", which is that the interpretation order is really:
Due to the ordering of the route blocks. Switching them fixes the problem:
Maybe
route:list
can be made to list the routes in literal interpretation order?Anyhow, just my UX brain have a hiccup.
The text was updated successfully, but these errors were encountered: