Laravel create foreign key column in migration
$table->foreignId('post_id')
->constrained()
->onUpdate('cascade')
->onDelete('cascade');
Are there any code examples left?
New code examples in category Other