migration for foreign key contraint in larave code example
Example: foreign key laravel migration
$table->foreign('column_name')->references('id')->on('table_name')->onDelete('cascade');
$table->foreign('column_name')->references('id')->on('table_name')->onDelete('cascade');