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 stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #foreign #key #laravel #migration
ADD COMMENT
Topic
Name
5+5 =