diff --git a/app/Services/Option.php b/app/Services/Option.php index 87e11edc..8757d351 100644 --- a/app/Services/Option.php +++ b/app/Services/Option.php @@ -20,6 +20,11 @@ class Option return; } + if (!file_exists(storage_path('install.lock')) || app()->runningUnitTests()) { + $this->items = collect(); + return; + } + $this->items = DB::table('options') ->get() ->mapWithKeys(fn ($item) => [$item->option_name => $item->option_value]);