mercredi 24 juin 2020

Check a column is empty array or not in Laravel

I have a json column which is set as null by default and casted as array in model. I've used

->where('column_name', '\[\]')->get();

It retrun empty collection.

My question is if i've to check whether a column is empty array or not in where condition what will i do?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire