DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+3 =
Submit