Skip to content

Commit

Permalink
avoid empty key (#1505)
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria authored Sep 4, 2022
1 parent 4bc034b commit 16bd4c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Middleware/Checks/IsInstalled.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 16bd4c1

Please sign in to comment.