F
Filamentβ€’2mo ago
Seb

How to customize the dashboard page ?

Hello, I want to customize the dashboard page. I've followed this : https://filamentphp.com/docs/3.x/panels/dashboard#customizing-the-dashboard-page - I've added Dashboard.php page in app/Filament/Pages - and removed Dashboard from the configuration file ( ->pages([])) But it's not working. No dashboard is displayed in the menu and the app automatically redirect me to an other part of my app. My config file : https://gist.github.com/sebtrucker/95c350ff7088667ecd7bc63913d0e1b9 What did I miss ?
Gist
AdminPanelProvider.php
GitHub Gist: instantly share code, notes, and snippets.
Solution:
You uncommented ->discoverPages() either enable that or register your Dashboard manually via ->pages()
Jump to solution
7 Replies
Solution
Dennis Koch
Dennis Kochβ€’2mo ago
You uncommented ->discoverPages() either enable that or register your Dashboard manually via ->pages()
Seb
SebOPβ€’2mo ago
How can I register it manually ? I tried
->pages([
App\Fialement\Pages\Dashboard::class,
])
->pages([
App\Fialement\Pages\Dashboard::class,
])
but it's not working
Dennis Koch
Dennis Kochβ€’2mo ago
What exactly is not working? Not showing up? You have a typo in "Filament". Is this the actual code?
Seb
SebOPβ€’2mo ago
It didn't find the file but I found the error. I forgot \ in the path. Thanks for your help !
Dennis Koch
Dennis Kochβ€’2mo ago
Shouldn't that result in an error? πŸ€”
Seb
SebOPβ€’2mo ago
Yes, it triggered : Unable to find component: [App\Providers\Filament\App\Filament\Pages\Dashboard]
Dennis Koch
Dennis Kochβ€’2mo ago
Please share errors if you get some. It helps debugging the issue πŸ˜‰

Did you find this page helpful?