id(); $table->string('name'); $table->string('phone')->unique(); $table->timestamp('email_verified_at')->nullable(); $table->string('password'); $table->text('avatar'); $table->rememberToken(); $table->string('status', 10)->default('inactive'); $table->string('role', 15)->nullable(true)->default(RoleEnum::USER->name); $table->bigInteger('balance')->default(0); $table->dateTime('last_login')->nullable(); $table->timestamps(); }); User::create(['name' => 'admin', 'phone' => '+998-99-208-08-02', 'password' => Hash::make('123456'), 'email_verified_at' => '2022-01-02 17:04:58', 'avatar' => '/assets/images/users/avatar-5.jpg', 'created_at' => now(), 'role' => 'admin']); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('users'); } }