[Filament v3] Resource not showing in sidebar
Hi everyone, I need help with my Filament v3 panel setup.
I created a resource using:
php artisan make:filament-resource Mahasiswa
The resource works fine (form and table are defined), but it doesn't appear in the sidebar at all.
I already did:
- Registered DashboardPanelProvider
in config/app.php
- Set .panel()
to use ->discoverResources(...)
- Cleared caches with php artisan optimize:clear
- Verified that App\Filament\Resources\MahasiswaResource::class
exists
There's no error in the log, and I'm using Laravel 11
Any idea what I might be missing?
Thanks in advance π2 Replies
Solution
Can you check the model policy. It should return true for
viewAny
methodAh yes! Turns out my viewAny() was returning false by default. I changed it to return true and now the resource shows up in the sidebar. Thank you so much! π