I have this menu inside a dropdown, and I want to highlight if any of the routes is inside,
Menu Name: User
Routes:
user.index
user.create
user.role.index
user.role.create
When I call this function
route().current('user.*');
the result is:
user.index (true)
user.create (true)
user.role.index (false)
user.role.create (false)
I expect everything should be true.
Honestly, I don't want to jump to the conclusion that it's a bug, and if it's not can you explain why?
Currently, I made a function to check both user.* and user.role.*
Ziggy version
1.6.0
Laravel version
^10.10
Description
Hi Everyone,
I have this menu inside a dropdown, and I want to highlight if any of the routes is inside,
Menu Name: User Routes:
When I call this function
route().current('user.*');
the result is:
I expect everything should be true.
Honestly, I don't want to jump to the conclusion that it's a bug, and if it's not can you explain why? Currently, I made a function to check both
user.*
anduser.role.*
Ziggy call and context
Ziggy configuration
Route definition