Answers for "remove null value from sql query on select in laravel"

PHP
1

laravel on delete set null

$table->...->onDelete('set null');

#First make sure you set the foreign key field as nullable:
$table->integer('foreign_id')->unsigned()->nullable();
Posted by: Guest on March-01-2021
1

query for select null in sql for laravel

DB::table('users')->whereNull('name')->get();
Posted by: Guest on November-16-2021

Code answers related to "remove null value from sql query on select in laravel"

Browse Popular Code Answers by Language