Answers for "tenancy for laravel create migration"

PHP
6

make a forign key in migrations using laravel 8

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

laravel migration integer

$table->integer('votes');
Posted by: Guest on March-22-2021

Code answers related to "tenancy for laravel create migration"

Browse Popular Code Answers by Language