F
Filamentβ€’2y ago
usmcgator

Filling a table with data?

Most of my app displays data from tables, and Filament makes them look beautiful with pagination, filters, etc. There is one section where I'm not pulling from an internal table but an external source that returns JSON. To keep things looking consistent, it'd be great if I could populate a Filament table with this JSON and leverage all the goodies that come with tables. Doable?
4 Replies
usmcgator
usmcgatorOPβ€’2y ago
I guess I could create a table to store the incoming JSON, but I was hoping to minimize data duplication.
toeknee
toekneeβ€’2y ago
You can use sushi and make a fake model basically, then you can just harness the model to consume the api as a normal relationship
usmcgator
usmcgatorOPβ€’2y ago
exactly what I was looking for, thanks!
toeknee
toekneeβ€’2y ago
Most welcome! πŸ˜„
Want results from more Discord servers?
Add your server