consume an external API with Filament Tables

I tried a new Laravel install using this package https://filamentphp.com/blog/how-to-consume-an-external-api-with-filament-tables, but it always returns a "could not find driver" error. I'm not sure why it's doing this as the entire purpose of this package is to consume JSON and use it in a Filament table without having to use a database. I tried a clean install using the instructions here https://github.com/leandrocfe/filament-tables-json-data-source, but it always results in the same error. Any ideas? could not find driver CREATE TABLE "publications" ( "id" integer NOT NULL PRIMARY key autoincrement, "title" varchar, "description" varchar, "price" integer, "rating" float, "brand" varchar, "category" varchar, "thumbnail" varchar )
7 Replies
Dan Harrin
Dan Harrin2y ago
do you have the sqlite php extension installed
usmcgator
usmcgatorOP2y ago
I didn't, but just installed it and restarted Apache, same error: sudo apt install php8.0-sqlite3 sudo service apache2 restart this solved my problem, thanks! sudo apt-get install php-sqlite3
AliBabba420
AliBabba42016mo ago
one more thing i wnt to show the data of my api in resource table but while create the form of that resource i wnt it should store in my migration table? is it possible like resource data should show in the table but create data should store in the local database table @Dan Harrin
Dan Harrin
Dan Harrin16mo ago
stop @ing me
LeandroFerreira
LeandroFerreira16mo ago
that doesn't make sense, right?
Carl-bot
Carl-bot16mo ago
noobita1012 has been warned, this is their first warning.
AliBabba420
AliBabba42016mo ago
Sry for @ing I know that doesn't make any sense but that the requirement they asked? Is there any way or I drop this sushi for this
Want results from more Discord servers?
Add your server