Level 48
DB::table('pwbs')->whereIn('code', $codeArray)
->where('project_id', $id)
->delete();
The 'in' does not go there
The = is optional
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
I am trying to chain whereIn and Where like this:
DB::table('pwbs')->whereIn('code', 'in', $codeArray)->where('project_id', '=', $id)->delete();
But it is not working.
Could anyone pls suggest me the right syntax to do it?
DB::table('pwbs')->whereIn('code', $codeArray)
->where('project_id', $id)
->delete();
The 'in' does not go there
The = is optional
Please or to participate in this conversation.