Laravel Migration sur Supprimer Set Null
$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');