How to handle data from an external api in a filament table
Does filament allow showing of data that is from an external api in the table
24 Replies
One of the most asked questions...... use sushi
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.
Thank you sir
@toeknee I think this solution does not work when am using just a filament table in laravel because thats what am doing currently
Do you think you have any alternative?
Yes yes it does, it's exactly what it says....
It was a typo I am using the filament table component in livewire but I need to fetch some data from an external api then feed it into the table but it seems that package works only with filament admin
That package has nothing to do with filament admin. It uses models and is completely independent of filament.
okay let me review it again
php artisan make:model Product
php artisan make:filament-resource Product --simple --view
Here it need me to create filament resource
@toeknee it requires me to create a filament resource
Well, the tutorial is for the admin panel, but you don't need to strictly follow it. You can also create a Filament table in a Livewire component
I have the table already created
No need to create a resource then
Tested it and it renders but it picks from a model i want to fetch data from an external @toeknee had recommended that
So what did you do? Did you follow the rest of the tutorial?
Yeah i went through but failed to figure out how to pick the data from the model to the table
So what's your model code?
let me share