Como obter todas as linhas de uma mesa, exceto algumas linhas em Laravel

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