Skip to content

Commit ad25ed6

Browse files
committed
Update UserCreate command, fix is_admin flag
1 parent af35fe9 commit ad25ed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Console/Commands/UserCreate.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function handle()
5252
$user->name = $o['name'];
5353
$user->email = $o['email'];
5454
$user->password = bcrypt($o['password']);
55-
$user->is_admin = (bool) $o['is_admin'];
55+
$user->is_admin = $o['is_admin'] == 'true';
5656
$user->email_verified_at = $o['confirm_email'] ? now() : null;
5757
$user->save();
5858

0 commit comments

Comments
 (0)