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!
Was this page helpful?