Simple question: I\'m new to Laravel. I have this migration file:
Schema::create(\'lists\', function(Blueprint $table) { $table->increments(\'id\');
In Laravel 7 it can be done in one line
$table->foreignId('user_id')->constrained()->cascadeOnDelete();