Creating a widget returns an error.
I have a widget on my panel and it was working fine. I have bumped composer dependencies, run the upgrade command and cleared views, but I now get an error;
If I follow the stats overview documentation to create a new widget and add it to my dashboard, I get the same error.
Solution:Jump to solution
I was using
getHeaderWidgets
in the dashboard page. I have removed this and setup the widgets in the Panel configuration now and they work correctly.5 Replies
php artisan about --only=Filament
What is the output?Are you caching components ?
You can clear the cache at any time without rebuilding it by running
php artisan filament:clear-cached-components
Cleared. Same error.
Solution
I was using
getHeaderWidgets
in the dashboard page. I have removed this and setup the widgets in the Panel configuration now and they work correctly.