Moved resources to Admin folder and auto discovery is broken
I have two panels Admin and Account. I tried moving the Admin resources into an /Admin folder, I updated all the namespaces and discover* paths in the panel provider.
The dashboard loads but no resources are auto discovered. Also, if I run
artisan make:filament-resource SomeResource
and select the admin panel the generated file’s namespace end in a slash namespace App\Filament\Admin\Resources\;
And the resource

3 Replies
if I run artisan make:filament-resource SomeResource and select the admin panel the generated file’s namespace end in a slash namespace App\Filament\Admin\Resources;At least that issue seems to be related to the trailing slash in
for: 'App\\Filament\\Admin\\Resources\\')
in discoverResources:
If I remove the slash the discovery still fails, I just included that the slash is added if it helped identify the issue
Can you try running
php artisan filament:optimize-clear
, maybe something is cached.