Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Zafeer's avatar

livewire filter where checkbox value contains column array value.

I have a table on which i want to implement filter, but the columns containing array values not single values and from those array values i want to apply filter. Below is the table.

| transactions |
--------------
["1","4","3"]
["2","5","3"]
["2","3","4"]

and i want to filter those rows whose array contains selected checkbox values.

0 likes
2 replies
tykus's avatar

The consequences of a bad database design….

transactions should be a separate table

Snapey's avatar

Agreeing with @tykus

I guess you are going to need to flatten the arrays and then get unique values.

Please or to participate in this conversation.