FilamentF
Filament3y ago
Joe

JSON columns issue

I'm creating a new application which has multiple languages, Arabic and english, so i made the title column type as JSON to accept multiple types eg. (title:{"ar":"lorem","en":"impsum"}) then i managed to install spatie translateable package and plugin. However in Select Input or SelectFilter the data appears as showing in the pictures, the Select input in the create/edit page can be sroted by adding options() with a query that gets the required data however that doesn't seem to work in SelectFilter for some reason.
image.png
image.png
Solution
Thanks to @awcodes the issue got sorted after raising the case as an issue in filament repo. here is the link to solution:
https://github.com/filamentphp/filament/issues/9033#event-10646961042
GitHub
Package filament/filament Package Version v3.0.63 Laravel Version v10.25.2 Livewire Version v3.0.5 PHP Version 8.1.0 Problem description Whenever there is a column that is translatable, it appears ...
Was this page helpful?