© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
2l30926048

Json column casted as array searchable in filament admin panel

Hey,

Do you know how I can make a text column searchable in filament if it's a json column casted as an array in the model.

The arrays look like this:

[
"value1", "value2", "value3", "etc"
]

What I tried but it seems to not work:

Tables\Columns\TextColumn::make('persons')->label('Persons')
->searchable()
->listWithLineBreaks()
->limitList(2)
->expandableLimitedList(),

This method is not working, 0 results.

Thanks!
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

RichEditor and JSON/array casted fields
FilamentFFilament / ❓┊help
6mo ago
Filament json column
FilamentFFilament / ❓┊help
2y ago
Help with displaying json casted as a collection in a table column
FilamentFFilament / ❓┊help
3y ago
Filament Admin Panel Auth
FilamentFFilament / ❓┊help
3y ago