setValue("SECRET_KEY", TokenService::random_bytes(15)); $envFile->saveTo(ROOT_DIR . "/.env"); $this->out->r("Secret key successfully created.", "green"); } }