migracja laravel na usunięciu zestawu null
$table->...->onDelete('set null');
TheDutchScorpion
$table->...->onDelete('set null');
composer require doctrine/dbal
$table->type('column')->nullable(false)->change();