Skip to content

withoutGenericValidation()

withoutGenericValidation() is the convenience form of genericValidation(false). It disables shared requiredness, string trimming, HTML tag rejection, and generic length checks for the rule.

use Fynix\Rule;
$rawValue = Rule::string('rawValue')
->withoutGenericValidation();

Use this only when the validator or surrounding application code intentionally handles those concerns. The method is immutable and returns a new rule.