diff --git a/app/Http/Controllers/SetupController.php b/app/Http/Controllers/SetupController.php index 56a23153..d508f4c3 100644 --- a/app/Http/Controllers/SetupController.php +++ b/app/Http/Controllers/SetupController.php @@ -58,7 +58,7 @@ class SetupController extends Controller public function getIndex() { // If we've copied the .env.example file, then we should try and reset it. - if (getenv('APP_KEY') === 'SomeRandomString') { + if (strlen(Config::get('app.key')) !== 32) { $this->keyGenerate(); }