diff --git a/app/Console/Commands/UserCreate.php b/app/Console/Commands/UserCreate.php index 00616af6..37a50946 100644 --- a/app/Console/Commands/UserCreate.php +++ b/app/Console/Commands/UserCreate.php @@ -52,7 +52,7 @@ class UserCreate extends Command $user->name = $o['name']; $user->email = $o['email']; $user->password = bcrypt($o['password']); - $user->is_admin = (bool) $o['is_admin']; + $user->is_admin = $o['is_admin'] == 'true'; $user->email_verified_at = $o['confirm_email'] ? now() : null; $user->save();