jeudi 8 septembre 2022

WhereIn Insinde Where array - Laravel Query Builder

I'm trying use a whereIn inside a where array I am passing to Laravel query Builder:


$where = [['Participants.Client_Id','IN', $clientId]];

DB::table('Participants')->where($where)->get()

Something like is what I want to achieve, and I know there are works around such as using whereIn, but I'm sharing here a small piece of code to give you an idea, so I need to change the array to make it works as a whereIn, not changing the ->where to ->whereIn or ->whereRaw



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/aCBpl4L
via IFTTT

Aucun commentaire:

Enregistrer un commentaire