toArray(); }); } public static function get(string $key, mixed $default = null): mixed { return static::getAll()[$key] ?? $default; } public static function set(string $key, string $value): void { static::where('key', $key)->update(['value' => $value]); Cache::forget('app_settings'); } }