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 devsenv.com #
 
PREVIOUS NEXT
Tagged: #laravel #foreign
ADD COMMENT
Topic
Name
2+7 =