mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 05:56:16 +00:00
fixes
This commit is contained in:
@ -8,19 +8,18 @@
|
||||
|
||||
class CreateUserCommand extends Command
|
||||
{
|
||||
protected $signature = 'user:create {name} {email}';
|
||||
protected $signature = 'user:create {name} {email} {password}';
|
||||
|
||||
protected $description = 'Create a new user';
|
||||
|
||||
public function handle(): void
|
||||
{
|
||||
$password = Str::random(20);
|
||||
User::create([
|
||||
'name' => $this->argument('name'),
|
||||
'email' => $this->argument('email'),
|
||||
'password' => bcrypt($password),
|
||||
'password' => bcrypt($this->argument('password')),
|
||||
]);
|
||||
|
||||
$this->info("User created with password: {$password}");
|
||||
$this->info("User created with password");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user