Laravel erstellen Fremdschlüsselspalte in der Migration
$table->foreignId('post_id')
->constrained()
->onUpdate('cascade')
->onDelete('cascade');
Akash