Answers for "add id to table laravel migration"

PHP
6

foreign id laravel migration

$table->unsignedBigInteger('user_id');
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
Posted by: Guest on June-21-2021

Code answers related to "add id to table laravel migration"

Browse Popular Code Answers by Language