different data source for Table Builder?
I want to use the Table Builder on a livewire page. From the docs, I need to use
query()
or relationship()
on the $table
. but my data is not from Models, but rather a large array dynamically generated from the previous operation. Is it possible?2 Replies
You can use sushi package
https://filamentphp.com/community/how-to-consume-an-external-api-with-filament-tables
Filament
How to consume an external API with Filament Tables by Leandro Ferr...
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
thanks. my case is a little different as the data is read by uploading a csv file from a user. so I tried with Sushi. I put the csv array into Cache, in the model's
getrows()
I tried to get that array from cache, but always returned null
. I can see the array is saved in cache.