Answers for "laravel migration add foreign key constraint to existing column"

PHP
5

foreign key laravel migration

$table->foreign('column_name')->references('id')->on('table_name')->onDelete('cascade');
Posted by: Guest on February-05-2021

Code answers related to "laravel migration add foreign key constraint to existing column"

Browse Popular Code Answers by Language