Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

foreign key laravel migration

$table->foreign('column_name')->references('id')->on('table_name')->onDelete('cascade');
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #foreign #key #laravel #migration
ADD COMMENT
Topic
Name
9+1 =