As mentioned in here, we can use the word cascade
when making a relation in migrations
but I wonder they didn't say anything about other actions when deleting
or updating
a foreign key
so I'm not sure if there is such thing or not:
$table->foreign('user_id')
->references('id')->on('users')
->onDelete('set null');
//->onDelete('set_null');
//->onDelete('setNull');
or the same thing about onUpdate
and about no action
just like the phpMyAdmin
thanks