diff --git a/app/Services/Option.php b/app/Services/Option.php index 5514fe38..87e11edc 100644 --- a/app/Services/Option.php +++ b/app/Services/Option.php @@ -20,13 +20,9 @@ class Option return; } - try { - $this->items = DB::table('options') - ->get() - ->mapWithKeys(fn ($item) => [$item->option_name => $item->option_value]); - } catch (QueryException $e) { - $this->items = collect(); - } + $this->items = DB::table('options') + ->get() + ->mapWithKeys(fn ($item) => [$item->option_name => $item->option_value]); } public function get($key, $default = null, $raw = false)