Error "Route not defined" on newly create resource
I am creating a new resource i don't know why this error is generating
using this command to create resource php artisan make:filament-resource Order --generate
also resource is created but there is no route in the
php artisan route:list
how to add this route ?
11 Replies
It's probably a Cache issue
@Dennis Koch ok let me clear the cache of application
This issue appeared numerous times here on Discord.
@Dennis Koch i cleared cache but still same issue
@Dennis Koch can you please help me how to solve this ?
Sorry, there's is not much I can do. Something is stuck somewhere. But it's on your machine and that' hard to debug via Discord.
@Dennis Koch ok i can again try by clearing cache
Try clearing route cache. Maybe restart PHP.
Do you have something like this at the bottom of your resource?
@margarizaldi yes i have this
Does it happen on all resources you create?
@margarizaldi all resources are working fine except the new ones
it worked by clearing route cache Thanks
@Dennis Koch done