first(); return $record ? ($record->config_value ?? $default) : $default; } public static function set(string $key, string $value): void { static::updateOrCreate( ['config_key' => $key], ['config_value' => $value] ); } }