From 91fd43b528c641e470ae3ed3f150c333375250ce Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Mon, 22 Nov 2021 01:19:40 +0100 Subject: [PATCH] Fix get method not returning all possible settings --- app/Services/AppstractOptionsService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/AppstractOptionsService.php b/app/Services/AppstractOptionsService.php index 5a18f40b..c0fc0ff2 100644 --- a/app/Services/AppstractOptionsService.php +++ b/app/Services/AppstractOptionsService.php @@ -13,8 +13,8 @@ class AppstractOptionsService implements SettingServiceInterface */ public function get(string $setting) { - $value = option($setting, config('2fauth.options' . $setting)); - $value = $this->restoreType($value); + $options = $this->all(); + $value = $options->get($setting); return $value; }