Replies: 1 comment
-
See #465 and #463 (comment). The To get an updated route list on every page you'll have to reload the Ziggy config on every navigation event, or at least every navigation event between admin and non-admin pages. See the linked discussions for how to do that. If your routes are all authenticated and authorized properly though, consider just not bothering hiding the admin routes. Having them appear in the HTML or request payload isn't a security risk. Let me know if that works and if you have any other questions! |
Beta Was this translation helpful? Give feedback.
-
Ziggy version
1.6
Laravel version
9.19
Description
I am trying to filter the routes according to the route accessed according to this part of the guide.
I'm trying to make use of the groups, but it's not working anyway.
I have 2 layouts, one for unauthenticated users (app) and one for admins (admin).
Here is my
config/ziggy.php
.All my routes are group-based.
No matter how much I use the
app
layout, all the administration routes are visible.Ziggy call and context
Ziggy configuration
Route definition
Beta Was this translation helpful? Give feedback.
All reactions