I have a db with a json column that's used to store a whole lot of nested data. I was wondering if anyone knows if (ideally via Eloquent) you can do something like :
@staudenmeir it's an object - which in turn contains lots of other nested objects. It's pretty much a dump of $request->all() for some complicated forms with 100's of fields.
@Dchubb ah - I was hoping the new json syntax in mysql would let me do it natively :-/ Fetching all the records and filtering them would be a bit 'costly' as there are many, many thousands of them :-/
My hacky way around it would be to store the data as one big concatenated text column and do a like query against that - but I'd much rather avoid that if I can...
@36864@bestmomo ah - fair enough I guess. Thanks for the pointer - I can avoid my hacky text column now and feel a little less guilty when I look at the code :-) Thanks again :-)