
// String characters length limitations
// - Fail Message Variables: {min} {max}
Validator::length(?int $min = null, ?int $max = null, string $failMessage);
// Needs to be checked checkbox
Validator::checkboxChecked(string $failMessage);
// Throw InputNotValidException() inside closure for error message
// Return true (rules ok) or false (validation failed) inside closure
Validator::custom(function(array|string|null $inputValue, Request $request){ /*Validate $inputValue ...*/ });
// Needs to be email
Validator::email(?string $failMessage = null);
// Needs to be exact value or in values if array is used
Validator::equalTo(string|array $equalTo, ?string $failMessage = null);
// Needs to be equal to other posted input
Validator::equalToInput(string $inputName, ?string $failMessage = null);
// Uploaded file size limitations
// - Fail Message Variables: {maxSize} {fileSize} - (both are humanized)
Validator::fileSize(int|float $maxSizeInBytes , ?string $failMessage = null);
// Uploaded file type restrictions, use file extensions eg. pdf,png,jpg
Validator::fileType(string|array $allowedFileType, ?string $failMessage = null);
// If the file is roperly uploaded and waiting in temp dir
Validator::fileUploaded(?string $failMessage = null);
// Empty string is forbidden
Validator::notEmpty(?string $failMessage = null);
// The field needs to contain only number characters
Validator::number(?string $failMessage = null);
// Number needs to be in range of numbers
// - Fail Message Variables: {min} {max}
Validator::numberRange(?int $min = null, ?int $max = null, ?string $failMessage = null);
// Custom regex validation for input
Validator::regex(string $regex, ?string $failMessage = null);
// If the input match the regex, it fails
Validator::regexNot(string $regex, ?string $failMessage = null);
// Only for array validations, if 2 or more values are same, it fails
Validator::distinct(?string $failMessage = null);
// Only for array validations, if 2 or more values are same and are not empty values, it fails
Validator::distinctSkipEmpty(?string $failMessage = null);