Support Laravel Broadcast scope binding #53574
Unanswered
Barbapapazes
asked this question in
Ideas
Replies: 1 comment
-
Actually, you can define /**
* Get the route key for the model.
*/
public function getRouteKeyName(): string
{
return 'number';
} in a model and it will be used by the |
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
-
Hello,
The router supports the scope binding to make sure that a parameter is the child of another one. Actually, broadcast does not support it but it could be very useful to support it to have a better feature parity between the router and the broadcasting channel definition.
https://laravel.com/docs/11.x/routing#implicit-model-binding-scoping
Beta Was this translation helpful? Give feedback.
All reactions