It seems like this should be pretty simple to find the answer to but apparently not for me.
I need to query a count of records where the field called bullets contains an array with a length of 5. Here is what I currently have but it's checking for character length of the field itself(I believe), not of an array. Can anyone help me out please?
$vcount = Variation::where('user_id', user_id)->whereRaw('LENGTH(bullets) = 5')->count();
JSON_LENGTHsql function to get the number of elements in the array.