F
Filamentβ€’16mo ago
SOIXT

Undefined routes

Hello, I am trying to append menuitem to user menu: ->userMenuItems([ MenuItem::make() ->label('Settings') ->url(route('filament.admin.pages.settings')) ->icon('heroicon-o-cog-6-tooth'), // ... ]) When I run php artisan route:list I get this: GET|HEAD admin/settings ............................................................................................................................................... filament.admin.pages.settings β€Ί App\Filament\Pages\Settings And still get error: Route [filament.admin.pages.settings] not defined. I cleared cache for routes etc..
13 Replies
gizmojo
gizmojoβ€’16mo ago
Use a closure url(fn () => route())
SOIXT
SOIXTOPβ€’16mo ago
Is there a way to customize sidebar to be like on v2? white πŸ˜„
Andrew Wallo
Andrew Walloβ€’16mo ago
Just sent a PR to docs to add this. Saw that a related PR was closed for it 4 days ago. Dan recently committed a PR to fix it but doesn't seem like its fixed still. Hopefully it gets merged to docs..
SOIXT
SOIXTOPβ€’16mo ago
Great Is there something in docs for multitenancy and subdomains? πŸ˜„
Andrew Wallo
Andrew Walloβ€’16mo ago
No. Domains yes.
SOIXT
SOIXTOPβ€’16mo ago
where I cannot find it πŸ˜„ i may be blind
Andrew Wallo
Andrew Walloβ€’16mo ago
There is a search bar for a reason
SOIXT
SOIXTOPβ€’16mo ago
I saw that but how is panel connected to different tenants? Do I need to add custom middleware to check is logged user connected to domain by tenant and add there or am i seeing that wrong in my mind
Andrew Wallo
Andrew Walloβ€’16mo ago
I haven't tried more than one tenant inside a panel yet so I do not know if that would work or not. If a panel has a tenant Filament sets the scope of each panel to the tenant. And also Im not sure about domain. I haven't used that yet either. I'm not a maintainer, I am just a user as well, so I don't know everything yet.
SOIXT
SOIXTOPβ€’16mo ago
Okay sorry, just got confused πŸ˜„
Andrew Wallo
Andrew Walloβ€’16mo ago
Haha nah man your good
Want results from more Discord servers?
Add your server