hash = $hash; } public function handle(): void { /** @var User|null $user */ $user = User::where('is_admin', true)->first(); if (!$user) { $this->error('An admin account cannot be found. Have you set up Koel yet?'); return; } $this->comment("Changing the default admin's password (ID: {$user->id}, email: {$user->email})"); $user->password = $this->hash->make($this->askForPassword()); $user->save(); $this->comment('Alrighty, your new password has been saved. Enjoy! 👌'); } }