But I get an empty array as a result.
I also tried switching the key and value in the command, like whereIn("Colour (website)", "Brown"), but without result.
Another thing I tried is converting the colour field to json, so it becomes a 'flatter array' like this: [colour_website] => ["Brown"] but that also doesn't work.
I'm trying to filter on a key that returns an array of colours, but I can't get it to work. Example of data:
My code:
But I get an empty array as a result. I also tried switching the key and value in the command, like
whereIn("Colour (website)", "Brown")
, but without result.Another thing I tried is converting the colour field to json, so it becomes a 'flatter array' like this:
[colour_website] => ["Brown"]
but that also doesn't work.What am I doing wrong?