i want query a table with a json column the object stored in json column is like this:
[
{
"title":"first",
"ids":[79,583,584]
},
{
"title":"second",
"ids":[600,601,602]
},
{
"title":"third",
"ids":[605,606,624]
}
]
and for example i want to find a row where one of its ids property contain for example 79. something like this:
Model::query()->whereJsonContains('data', ['ids[*]' => 79])->first();
i,ve searched a lot and tried some syntaxes but nothing worked. is that possible to do? how? my database is mysql