I have a column called type that the value could be an object as a string, for example:
type = "{ 'a' : 'test1', 'b' : 'test2' }";
I want to get using Eloquent all rows where type.b = "test";
I can't access b in my where statement as it's not a column variable. I know I can use regex for it but I want to see if there is a better approach.