/** * Get the key file and contents. * * @return array */ public function getKeyFileArray() { $path = $this->getKeyFilePath(); $defaultEnvFile = dirname(__FILE__) . "/../Files/.env.default.php"; if (!$this->files->exists($path)) { $this->files->copy($defaultEnvFile, $path); // copy default file } $envConfig = $this->files->includeFile($path); return $envConfig; }