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
Use a closure url(fn () => route())
https://filamentphp.com/docs/3.x/panels/navigation#customizing-the-user-menu
Docs should be updated then, it works
Is there a way to customize sidebar to be like on v2? white π
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..
Great
Is there something in docs for multitenancy and subdomains? π
No. Domains yes.
where I cannot find it π
i may be blind
There is a search bar for a reason
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
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.
Okay sorry, just got confused π
Haha nah man your good