Weird behavior when creating resource

Hey there, so I tried creating creating a new resource to my project with the command
php artisan make:filament-resource Voucher --generate
php artisan make:filament-resource Voucher --generate
It creates the files, routes all great. But when I open the project it doesn't recognize this new resource, it gives 404 errors when manually putting the URL (while on php artisan route:list they are there)... The sidebar only shows the already existing resources. I tried to delete vendor folder, install packages, clear cache, another browser. The Model exists, the migration and seeder works because I already have data on the table... Any clues on why this is happening? Thanks Filament version: v3.2.95 Laravel version: 11.9
Solution:
Ok, found the cause xD I thought php artisan optimize:clear would clear filaments cache on bootstrap/cache/filament . Manually deleted it and my resource shows.
Jump to solution
1 Reply
Solution
Bruno Pereira
Bruno Pereira6mo ago
Ok, found the cause xD I thought php artisan optimize:clear would clear filaments cache on bootstrap/cache/filament . Manually deleted it and my resource shows.
Want results from more Discord servers?
Add your server