Convert .env file to env.php to mask critical info

This commit is contained in:
Nabeel Shahzad
2017-12-17 01:10:49 -06:00
parent 817d3262d4
commit 9105c45ad0
8 changed files with 95 additions and 8 deletions

View File

@@ -5,7 +5,7 @@ return [
'version' => '7.0.0'
],
'env_postfix' => '',
'env_filename' => 'env.php',
'extensions' => [
'openssl',

View File

@@ -86,8 +86,8 @@ class EnvironmentService
*/
protected function writeEnvFile($opts)
{
$env_file = \App::environmentFilePath();
$env_file .= config('installer.env_postfix');
$env_file = \App::environmentPath();
$env_file .= config('installer.env_filename');
# render it within Blade and log the contents
$env_contents = view('installer::stubs/env', $opts);