DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
Laravel create foreign key column in migration
$table->foreignId('post_id') ->constrained() ->onUpdate('cascade') ->onDelete('cascade');
Source by devsenv.com #
PREVIOUS
NEXT
Tagged:
#Laravel
#create
#foreign
#key
#column
#migration
ADD COMMENT
Topic
COMMENT
Name
4+5 =
Submit