[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 πŸ™
Solution:
Can you check the model policy. It should return true for viewAny method
Jump to solution
2 Replies
Solution
Hasan Tahseen
Hasan Tahseenβ€’4mo ago
Can you check the model policy. It should return true for viewAny method
agustya pratama
agustya pratamaOPβ€’4mo ago
Ah 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! πŸ™Œ

Did you find this page helpful?