The 'whereNotIn' method of the DB Facade only accepts an array as second argument $user = DB::table('users')->whereNotIn('id', [1])->get();