Help hiding some options in sidebar and dashboard
Greetings! I'm learning how to use Filament and I managed to make something following a tutorial. I want to customize/hide some things but I don't really understand how to customize the dashboard (english is not my first language but I can understand some of the documentation.) I commented some lines in the filament.php file in the vendor file of the project (the Pages\Dashboard::class), and I managed to change a message in the dashboard. I understand it can be made making a new dashboard page in Filaments/Pages/Dashboard.php but I'm getting confused.
I'm sorry if my question is too basic or stupid and bothering you.
11 Replies
Don’t ever modify vendor files. They will be overwritten any time you update.
I’d recommend learning more about OOP and how extending classes work. And learning the fundamentals of laravel before taking on Filament.
We certainly welcome you to the community and will help anyway we can, but it will benefit you to have a good understanding of the fundamentals first.
The mentions of "Laravel" that you highlighted, those are from
APP_NAME=Laravel
in your /.env
file.To remove the Filament widget, go to your
AdminPanelProvider.php
and remove it from the ->widgets([...
array.You saved me. It was de .env, I forgot about that. Panel builder works with filament 2.x?
Sorry, I don't know anything about Filament v2! 🤷♂️
The docs are very thorough, so check there.
don't worry, you helped me a lot. Thank you so much, I'll read the docs more carefully.
No, panel builder is for v3 only.
I did it. I checked and it was the filament-spatie-roles-permissions.php that had to be in the config file (not vendor because of what Mr. awcodes said.) So I changed the values to false and it worked, it hide them. Thank you so much for your help 😄