Replies: 2 comments
-
I'm struggling with this, too. It's so confusing that just by using a custom column for the models, scoped bindings are silently turned on. I think it would be nice to at least have an option to opt-out of this behaviour (ideally, also, globally). With L9 we now have the |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've opened up a PR to try and resolve this in Laravel 9: #44528 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an application for first-responders that sends SMS notifications and has a unique link for each responder to click on to acknowledge they have received the message. The initial route definition looks like this:
The problem is that there isn't really a relationship between the
Voicemail
andUser
models, those are just two separate pieces of data that I need to know. There doesn't seem to be a way to tell the router not to scope the second item to the first one. Explicit declaration of intent to scope was added in #39440. What about explicit declaration of intent to not scope?If you want to make it more advanced, you could specify which models should not be scoped:
The (ridiculous) workaround:
Beta Was this translation helpful? Give feedback.
All reactions