F
Filamentβ€’2w ago
nowak

I get Class "App\Filament\Pages\Dashboard" not found after removing Dashboard on Production

I wanted to create a custom dashboard instead of the default panel dashboard. I named my custom dashboard class something other than Dashboard, which I had no issues with when developing locally. Then when pushing my changes to Production (Staging environment), I get the Class "App\Filament\Pages\Dashboard" not found error. Has anyone else experienced something similar? It is very strange that I get the error on production but not locally.
5 Replies
Lara Zeus
Lara Zeusβ€’2w ago
did you set it on the panel provider ->pages() also looks like file came case sensitive between linux and windows or mac!
nowak
nowakβ€’2w ago
No I removed everything from ->pages([]) on the panel provider.
Lara Zeus
Lara Zeusβ€’2w ago
I think filament need a default page to land on it πŸ™‚ try add the new dashboard you made in ->pages()
nowak
nowakβ€’2w ago
Thanks! I will try that next time I push to production. But strange that filament doesn't need this on my local environment.
Lara Zeus
Lara Zeusβ€’2w ago
it could be cached on local?
Want results from more Discord servers?
Add your server