mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-05 07:52:34 +00:00
API Feature (#334)
This commit is contained in:
@ -21,13 +21,15 @@ public function handle(): void
|
||||
return;
|
||||
}
|
||||
|
||||
User::query()->create([
|
||||
$user = User::query()->create([
|
||||
'name' => $this->argument('name'),
|
||||
'email' => $this->argument('email'),
|
||||
'password' => bcrypt($this->argument('password')),
|
||||
'role' => $this->option('role'),
|
||||
]);
|
||||
|
||||
$user->createDefaultProject();
|
||||
|
||||
$this->info('User created!');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user