Answers for "laravel 4.2 on delete set to null"

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

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

Browse Popular Code Answers by Language