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

BishoyWagih's avatar

select from array field in database

I have a database table with three fields

id (integer) say value=> 1

color (string) say value => 'red'

length (array) [1 , 8]

how can I select where color = 'red' and the given length in length between 1 and 8?

ps iam using laravel eloquent...

0 likes
3 replies

Please or to participate in this conversation.