Laravel is not smart enough to handle arrays

Wednesday, November 4, 2015

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?

0 comments:

Post a Comment