static::query()->find($key)?->value); return $value ?? $default; } public static function put(string $key, ?string $value): void { static::query()->updateOrCreate(['key' => $key], ['value' => $value]); Cache::forget("setting:{$key}"); } }