table('store_config') ->where('id', self::CONFIG_ID) ->value('enabled'); } catch (Throwable $exception) { report($exception); return false; } } public function setEnabled(bool $enabled): void { DB::connection('store') ->table('store_config') ->where('id', self::CONFIG_ID) ->update(['enabled' => (int) $enabled]); } }