refactor: use correct storage path for app key check

This commit is contained in:
hackerESQ
2025-03-06 18:35:57 -06:00
parent 22e12977f8
commit 8a357e8cab
3 changed files with 7 additions and 5 deletions
+2 -1
View File
@@ -100,7 +100,8 @@ return [
'cipher' => 'AES-256-CBC',
'key' => env('APP_KEY') ?: when(file_exists('storage/app/.key'), fn () => trim(file_get_contents('storage/app/.key'))),
'key' => env('APP_KEY')
?: when(file_exists(storage_path('app/.key')), fn () => trim(file_get_contents(storage_path('app/.key')))),
'previous_keys' => [
...array_filter(