Use Array in Table Builder
i had atttatched my code in attachement i want to pass array as in table builder no query then how to do that? please help.
5 Replies
Using a database view, and creating a model works nicely.
Otherwise: https://usesushi.dev/
Sushi 🍣
Eloquent’s missing “array” driver.
Sometimes you just want to use Eloquent without a database.
Using a database view, and creating a model works nicely. - How to do this?
You can use similar logic to our tutorial: https://laraveldaily.com/post/filament-load-table-data-from-3rd-party-api
Laravel Daily
Filament: Load Table Data From 3rd Party API
Also, googled a few github discussions pointing that this feature of array in table will be properly available in Filament 4
https://github.com/filamentphp/filament/discussions/12920
GitHub
Table without a model? · filamentphp filament · Discussion #12920
Package Table builder Package Version v3.2.62 How can we help you? I'm looking to make a simple page with a table that displays some data. Something like this: protected array $arrayData = [ [&...
Back end, databasey stuff. The sort of things that inexplicably frighten php & larvel people on my team !
You can't use traditional migrate features. But if you can learn how to create database views and procedures, you can off load a lot of processing to the back end, then you these views act like read only tables.
Its MySQL code, not PHP, so you'll have to look into that.