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
In all my React components.
Ziggy configuration
I don't have any relevant settings.
I have just that in my HandleInertiaRequest Middleware:
'ziggy' => function () use ($request) {
return array_merge((new Ziggy)->toArray(), [
'location' => $request->url()
]);
},
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