F
Filament15mo ago
arkgath

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.
No description
No description
No description
11 Replies
awcodes
awcodes15mo ago
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.
DrByte
DrByte15mo ago
The mentions of "Laravel" that you highlighted, those are from APP_NAME=Laravel in your /.env file.
No description
No description
DrByte
DrByte15mo ago
To remove the Filament widget, go to your AdminPanelProvider.php and remove it from the ->widgets([... array.
No description
No description
arkgath
arkgathOP15mo ago
You saved me. It was de .env, I forgot about that. Panel builder works with filament 2.x?
DrByte
DrByte15mo ago
Sorry, I don't know anything about Filament v2! 🤷‍♂️ The docs are very thorough, so check there.
arkgath
arkgathOP15mo ago
don't worry, you helped me a lot. Thank you so much, I'll read the docs more carefully.
Vp
Vp15mo ago
No, panel builder is for v3 only.
arkgath
arkgathOP15mo ago
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 😄
No description
Want results from more Discord servers?
Add your server