Confirming expected behavior for route().current() #814
-
Stack: Laravel, Inertia, Vue 3 I ran into an issue today when trying to use I realized the issue is because we're using the filtered routes feature and only exposing certain routes to the frontend. Once I added the route in question to the list, the function worked as expected. I just want to confirm this is the expected behavior. Or is there a way to continue using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yeah that's the expected behavior, Ziggy is only aware of the routes passed to it so if you filter them then as far as Ziggy knows the other ones don't exist. |
Beta Was this translation helpful? Give feedback.
Yeah that's the expected behavior, Ziggy is only aware of the routes passed to it so if you filter them then as far as Ziggy knows the other ones don't exist.