Update UserCreate.php

This commit is contained in:
Shlee 2022-05-21 15:53:47 +09:30 committed by GitHub
parent 66ab7491a3
commit 6c69b30870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class UserCreate extends Command
$user->email = $o['email'];
$user->password = bcrypt($o['password']);
$user->is_admin = (bool) $o['is_admin'];
$user->email_verified_at = (bool) $o['confirm_email'] ? now() : null;
$user->email_verified_at = $o['confirm_email'] ? now() : null;
$user->save();
$this->info('Successfully created user!');