mercredi 4 novembre 2015

Laravel is not smart enough to handle arrays

If you add whereIn('type',['b','s']) to a query it does not wrap the array items with '. it generate where type in (b,s) instead of where type in ('b','s'). What is the workaround?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire