Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to get all rows from a table except some rows in laravel

The 'whereNotIn' method of the DB Facade only accepts an array as second argument
$user = DB::table('users')->whereNotIn('id', [1])->get();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rows #table #rows #laravel
ADD COMMENT
Topic
Name
6+6 =