option('role')); if ($role === null) { $this->error('Unbekannte Rolle.'); return self::FAILURE; } $password = Str::password(20); $user = $register->register((string) $this->option('name'), (string) $this->argument('email'), $password, true); $user->markEmailAsVerified(); $assign->sync($user, [$role->value], $user); $this->info('Konto angelegt. Passwort (nur diese Ausgabe):'); $this->line($password); return self::SUCCESS; } }