From 01dad875dec44b5fca51ff49680fa4625ac6dc8c Mon Sep 17 00:00:00 2001 From: ildyria Date: Sun, 4 Sep 2022 16:11:42 +0200 Subject: [PATCH] avoid empty key --- app/Http/Middleware/Checks/IsInstalled.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Middleware/Checks/IsInstalled.php b/app/Http/Middleware/Checks/IsInstalled.php index 7b4741ac5da..d2237638350 100644 --- a/app/Http/Middleware/Checks/IsInstalled.php +++ b/app/Http/Middleware/Checks/IsInstalled.php @@ -22,6 +22,7 @@ public function assert(): bool try { return config('app.key') !== null && + config('app.key') !== '' && Schema::hasTable('configs'); } catch (QueryException $e) { // Authentication to DB failled.