F
Filamentβ€’13mo ago
K R A T O S

Route [filament.admin.resources.bases.index] not defined

Hey! I am getting the above error and I don't know why this is happening. I tried listing all the routes I have, But doesn't seem to exist. Any lead on this is appreciated. Thanks in advance.
No description
23 Replies
sadiqgoni13
sadiqgoni13β€’13mo ago
php artisan route:clear
php artisan route:clear
Dennis Koch
Dennis Kochβ€’13mo ago
Or php artisan filament:upgrade
Jordy
Jordyβ€’13mo ago
dont ever cache your routes in dev.. dont run any cache commands in dev. absolutely useless
toeknee
toekneeβ€’13mo ago
or what.... hey hey...
K R A T O S
K R A T O SOPβ€’13mo ago
I did both, route clear and upgrade, nothing worked so far.
toeknee
toekneeβ€’13mo ago
Have you manually defined that route somewhere?
K R A T O S
K R A T O SOPβ€’13mo ago
No. I tried searching throughout the entire project, Nothing.
Noxo
Noxoβ€’13mo ago
check route list - php artisan route:list
K R A T O S
K R A T O SOPβ€’13mo ago
Did that as well. Can't find the route.
toeknee
toekneeβ€’13mo ago
php artisan cache:clear && php artisan view:clear
Noxo
Noxoβ€’13mo ago
where do you use this route?
toeknee
toekneeβ€’13mo ago
He said he doesn't
K R A T O S
K R A T O SOPβ€’13mo ago
Yeah. Its like a rouge route which I can't seem to find.
Noxo
Noxoβ€’13mo ago
does the bases resourse exist?
sadiqgoni13
sadiqgoni13β€’13mo ago
Happened to me this morning after running
php artisan route:clear
php artisan route:clear
everything is working fine
K R A T O S
K R A T O SOPβ€’13mo ago
That's the weirdest part, I don't have a resource named like that or even close to that! πŸ˜…
Noxo
Noxoβ€’13mo ago
hmm πŸ€” , do you use laravel octane?
Dennis Koch
Dennis Kochβ€’13mo ago
Can you share the error instead of a screenshot?
lazydog
lazydogβ€’13mo ago
I've encountered this yesterday please run this command
php artisan config:cache
php artisan optimize
php artisan config:cache
php artisan optimize
Jordy
Jordyβ€’13mo ago
do not cache in dev
gemini.dev
gemini.devβ€’12mo ago
Hi, have you managed to fix this issue?
awcodes
awcodesβ€’12mo ago
Try artisan optimize:clear nuke the whole cache. It could be coming from a broken plugin too.
johnjohn
johnjohnβ€’7mo ago
I had the same error and found that my resource had the same name of the new route I made. I had a Lead resource and tried to make a /leads route in my api.php file. I'm assuming when Filament loads the dashboard it setups up the resource routes based on their class names but having a route that shares a name with a resource causes this error (I'm going to have to look more into documentation to have a better understanding). You mention in this thread you don't have any classes/resources with the class name base but hopefully this helps someone else with the same problem. πŸ™‚
Want results from more Discord servers?
Add your server