Answers for "laravel do something if null"

PHP
3

laravel where is null

DB::table('users')	->whereNull('name')	->get();
Posted by: Guest on June-29-2020
0

laravel where is null

DB::table('users')
            ->whereNull('first_name');
Posted by: Guest on March-11-2021
0

check null if string laravel

$query->whereRAW("IFNULL(COLUMN_NAME,'') = '' ")
Posted by: Guest on June-25-2021

Code answers related to "laravel do something if null"

Browse Popular Code Answers by Language