Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel foreign key

$table->foreignId('user_id')
      ->constrained()
      ->onUpdate('cascade')
      ->onDelete('cascade');
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #foreign #key
ADD COMMENT
Topic
Name
7+6 =