This commit is contained in:
EwelinaLasowy
2022-01-17 10:37:41 +01:00
parent 7dca5d1e6c
commit fc4669568c
14 changed files with 41 additions and 23 deletions

View File

@@ -11,14 +11,16 @@ class CreateUserCommand extends Command
{
protected $signature = "user:create
{email : an email for the user}";
protected $description = "Creates user";
protected $description = "Creates a user";
public function handle(): void
{
$email = $this->argument("email");
User::factory(["email" => $email])->create();
User::factory([
"email" => $email,
])->create();
$this->info("User has been created");
$this->info("The user has been created");
}
}