Answers for "set null on foreign key deletion in laravel"

PHP
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 "set null on foreign key deletion in laravel"

Browse Popular Code Answers by Language