Answers for "laravel wherenotnull"

PHP
1

larave whereNotNull

# whereNull
$users = DB::table('users')
  ->whereNull('updated_at')
  ->get();
# whereNotNull
$users = DB::table('users')
  ->whereNotNull('updated_at')
  ->get();
Posted by: Guest on March-16-2021
7

laravel not in query

DB::table(..)->select(..)->whereNotIn('book_price', [100,200])->get();
Posted by: Guest on September-26-2020

Browse Popular Code Answers by Language