'array', ]; public static function get(string $key, $default = null) { $row = static::query()->where('key', $key)->first(); return $row?->value ?? $default; } public static function put(string $key, $value): void { static::updateOrCreate(['key' => $key], ['value' => $value]); } }