Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel foreign

$table->unsignedBigInteger('user_id');
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade')
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #foreign
ADD COMMENT
Topic
Name
1+4 =