© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
Bruno Pereira

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
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Accessing parent resource when creating nested resource
FilamentFFilament / ❓┊help
6mo ago
Topbar weird behavior when bottom scroll
FilamentFFilament / ❓┊help
2y ago
Weird override behavior
FilamentFFilament / ❓┊help
17mo ago
Specify a directory when creating a resource
FilamentFFilament / ❓┊help
2y ago