laravel migration primary key and foreign same column 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');