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.
8 Replies
How did you create the new panel? What steps did you take?
Followed by etc
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.
You're prompted for a panel when you don't specify one.
But you can also include resources manually that are in other panels using the ->resources() method
Ok, nice!
Seems like the data is there but you didn’t set up columns for the table?
@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!