|string> */ public function rules(): array { return [ 'key' => ['required', 'string', 'max:255', 'regex:/^[A-Z][A-Z0-9_]*$/'], 'value' => ['nullable', 'string'], ]; } }