We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af35fe9 commit ad25ed6Copy full SHA for ad25ed6
app/Console/Commands/UserCreate.php
@@ -52,7 +52,7 @@ public function handle()
52
$user->name = $o['name'];
53
$user->email = $o['email'];
54
$user->password = bcrypt($o['password']);
55
- $user->is_admin = (bool) $o['is_admin'];
+ $user->is_admin = $o['is_admin'] == 'true';
56
$user->email_verified_at = $o['confirm_email'] ? now() : null;
57
$user->save();
58
0 commit comments