F
Filament15mo ago
Skjena

After updating to filament v3, resources are not shown.

My project has been updated to filament version 3, which displays only the getNavigationGroup but not the resources.
Solution:
1) Check whether you have the permissions 2) Did you run artisan filament:upgrade? 3) Do you have published view files?...
Jump to solution
10 Replies
Skjena
SkjenaOP15mo ago
It looks like this.
LeandroFerreira
LeandroFerreira15mo ago
Are you using pages and resources in the app/Filament folder?
Skjena
SkjenaOP15mo ago
yes
Skjena
SkjenaOP15mo ago
This is how my folder structure looks.
LeandroFerreira
LeandroFerreira15mo ago
what about $panel->discoverResources()?
Skjena
SkjenaOP15mo ago
It already there
->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')
->pages([
Pages\Dashboard::class,
])
->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')
->pages([
Pages\Dashboard::class,
])
Solution
Dennis Koch
Dennis Koch15mo ago
1) Check whether you have the permissions 2) Did you run artisan filament:upgrade? 3) Do you have published view files?
Skjena
SkjenaOP15mo ago
Yeah, I got that I have executed the composer update but not the artisan filament:upgrade command. Thank you @Dennis Koch
Dennis Koch
Dennis Koch15mo ago
Please add it to you composer after update script as mentioned in the docs.
Skjena
SkjenaOP15mo ago
Yes, I've already added.
Want results from more Discord servers?
Add your server