Skip to content

Commit

Permalink
add nullable options in the migration to the user model
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndresRamirez committed Nov 5, 2024
1 parent 8f4a4e1 commit 63c238e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions database/migrations/0001_01_01_000000_create_users_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ public function up(): void
{
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('name')->nullable();
$table->string('email')->unique();
$table->string('lastname');
$table->string('phone_number');
$table->string('document')->unique();
$table->string('document_type');
$table->string('lastname')->nullable();
$table->string('phone_number')->nullable();
$table->string('document')->unique()->nullable();
$table->string('document_type')->nullable();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->rememberToken();
Expand Down

0 comments on commit 63c238e

Please sign in to comment.