FilamentF
Filament3y ago
Wiin

Setting $panel->path('') causes route not defined error

Hello, I've recently started using filament v3 and when creating the panel if I try to set the path without prefix like this:
return $panel
->default()
->id('admin')
->path('')

The app throws this error:
Route [filament.admin.auth.login] not defined.

But if I set the path to something else like ->path('app') and go to /app it works perfectly. Any idea what could be causing the error? I'm using the stancl/multitenancy library too, but I don't think it has anything to do with the error.
Was this page helpful?