Answers for "laravel foreign on delete set null"

PHP
3

laravel migration on delete set null

$table->...->onDelete('set null');
Posted by: Guest on April-22-2020
0

set null on foreign key deletion in laravel

$table->foreignId('forign_id')->nullable()->constrained("table_name")->cascadeOnUpdate()->nullOnDelete();
Posted by: Guest on March-21-2021

Code answers related to "laravel foreign on delete set null"

Browse Popular Code Answers by Language