dashboard filtersForm() not showing up
My dashboard extends
Filament\Pages\Dashboard
, on that dashboard page i have the Filament\Pages\Dashboard\Concerns\HasFiltersForm
.
I added the filtersForm()
like this:
Still i don't see any form at the dashboard page.13 Replies
are overwriting the views?
No filament views are overridden
Did you do this?
https://filamentphp.com/docs/3.x/panels/dashboard#customizing-the-dashboard-page
Did you remove
Pages\Dashboard::class
in the panel provider?Yes
Are you sure it is rendering the correct file? Did you create a Dashboard page?
Yes i created a dashboard page. It is extending the right page also.
The custom dashboard is rendering a view with just in it.
you should use the default view
Wow that seems to work
Maybe that also fixes my problem that
$this->filters
keeps saying null
Thanks!
Shouldnt this be in the docs?no, you should delete your
$view
attribute because there is in the default dashboard classWell when i created a page and extended the dashboard page i expected it do be good already
I mean, it is present here https://github.com/filamentphp/filament/blob/3.x/packages/panels/src/Pages/Dashboard.php
GitHub
filament/packages/panels/src/Pages/Dashboard.php at 3.x · filamentp...
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - filamentphp/filament
You don't need to declare
$view
in your classOkay learned something. Thanks!