Migración de Laravel en Eliminar el conjunto nulo
$table->...->onDelete('set null');
TheDutchScorpion
$table->...->onDelete('set null');
composer require doctrine/dbal
$table->type('column')->nullable(false)->change();
$table->foreignId('user_id')
->constrained()
->onDelete('cascade');