public function saveNewApplicationKey() { $env = $this->EnvironmentFileManager->get(); if (!array_key_exists('APP_KEY', $env)) { $this->EnvironmentFileManager->merge(['APP_KEY' => str_random(32)]); } }