From 6c5b4b960bff4e63f56d30b18ca3554ca2efe3b3 Mon Sep 17 00:00:00 2001 From: vanrestual <38799119+vanrestual@users.noreply.github.com> Date: Sun, 19 May 2019 04:13:00 +0700 Subject: [PATCH] Generate APP_KEY Automatically --- src/Helpers/EnvironmentManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Helpers/EnvironmentManager.php b/src/Helpers/EnvironmentManager.php index dc933ff..109ee6f 100755 --- a/src/Helpers/EnvironmentManager.php +++ b/src/Helpers/EnvironmentManager.php @@ -95,7 +95,7 @@ public function saveFileWizard(Request $request) $envFileData = 'APP_NAME=\'' . $request->app_name . "'\n" . 'APP_ENV=' . $request->environment . "\n" . - 'APP_KEY=' . 'base64:bODi8VtmENqnjklBmNJzQcTTSC8jNjBysfnjQN59btE=' . "\n" . + 'APP_KEY=' . 'base64:' . base64_encode(str_random(32)) . "\n" . 'APP_DEBUG=' . $request->app_debug . "\n" . 'APP_LOG_LEVEL=' . $request->app_log_level . "\n" . 'APP_URL=' . $request->app_url . "\n\n" .