No data displayed

My default admin panel is working great. Resources are displayed just as you'd expect. The problem is when I create a new panel and add resources to it using the standard artisan commands, no data is displayed. I'm using the latest versions of Filament, Livewire, Laravel, etc. Trying clearing all caches and other suggestions in the first aid section. There are no error messages and I'm out of ideas. Any help would be appreciated.
No description
8 Replies
JJSanders
JJSanders2mo ago
How did you create the new panel? What steps did you take?
00ff00ff
00ff00ff2mo ago
php artisan filament:install --panels
php artisan filament:install --panels
Followed by
php artisan make:filament-resource Customer
php artisan make:filament-resource Customer
etc
awcodes
awcodes2mo ago
Iirc the make resource commands also accepts a flag for the panel. So —panel=admin or —panel=app Without the flag resource will be generated in the namespace for the default panel. Meaning it won’t be auto discovered in the other panel since it’s not in that panel’s namespace.
00ff00ff
00ff00ff2mo ago
You're prompted for a panel when you don't specify one.
No description
awcodes
awcodes2mo ago
But you can also include resources manually that are in other panels using the ->resources() method
00ff00ff
00ff00ff2mo ago
Ok, nice!
Dennis Koch
Dennis Koch2mo ago
Seems like the data is there but you didn’t set up columns for the table?
00ff00ff
00ff00ff2mo ago
@Dennis Koch yes, I think you're right. make:filament-resource automatically setup the columns on the admin panel, but not on the other panels. Not sure if this expected behavior, but I understand the issue now. Thank you!
Want results from more Discord servers?
Add your server
More Posts