Jelajahi Sumber

Update UserCreate.php

Shlee 3 tahun lalu
induk
melakukan
6c69b30870
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/Console/Commands/UserCreate.php

+ 1 - 1
app/Console/Commands/UserCreate.php

@@ -53,7 +53,7 @@ class UserCreate extends Command
             $user->email = $o['email'];
             $user->email = $o['email'];
             $user->password = bcrypt($o['password']);
             $user->password = bcrypt($o['password']);
             $user->is_admin = (bool) $o['is_admin'];
             $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();
             $user->save();
 
 
             $this->info('Successfully created user!');
             $this->info('Successfully created user!');