eloquent ondelete schema set default code example
Example: laravel 7 eloquent on delete set null schema
$table->foreignId('user_id')
->constrained()
->onDelete('cascade');
$table->foreignId('user_id')
->constrained()
->onDelete('cascade');