How to use WHERE NOT IN in DB:Raw Laravel
How to use WHERE NOT IN in DB:raw Laravel? Here's my sample code $query = DB::select(DB::raw("... WHERE ID NOT IN (:ids) ..", array( 'ids' => "1,2,3" ))); I also tried this $ids = "'1','2','3'"; $query = DB::select(DB::raw("... WHERE ID NOT…