mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 22:16:15 +00:00
User management (#185)
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
|
||||
class CreateUserCommand extends Command
|
||||
{
|
||||
protected $signature = 'user:create {name} {email} {password}';
|
||||
protected $signature = 'user:create {name} {email} {password} {--role=admin}';
|
||||
|
||||
protected $description = 'Create a new user';
|
||||
|
||||
@ -25,6 +25,7 @@ public function handle(): void
|
||||
'name' => $this->argument('name'),
|
||||
'email' => $this->argument('email'),
|
||||
'password' => bcrypt($this->argument('password')),
|
||||
'role' => $this->option('role'),
|
||||
]);
|
||||
|
||||
$this->info('User created!');
|
||||
|
Reference in New Issue
Block a user