Метод |
Описание |
|
addError ( string $attribute, string $rule, array $parameters ) |
Add an error message to the validator's collection of messages. |
|
addFailure ( string $attribute, string $rule, array $parameters ) |
Add a failed rule and error message to the collection. |
|
allFailingRequired ( array $attributes ) : boolean |
Determine if all of the given attributes fail the required test. |
|
anyFailingRequired ( array $attributes ) : boolean |
Determine if any of the given attributes fail the required test. |
|
callClassBasedExtension ( string $callback, array $parameters ) : boolean |
Call a class based validator extension. |
|
callClassBasedReplacer ( string $callback, string $message, string $attribute, string $rule, array $parameters ) : string |
Call a class based validator message replacer. |
|
callExtension ( string $rule, array $parameters ) : boolean |
Call a custom validator extension. |
|
callReplacer ( string $message, string $attribute, string $rule, array $parameters ) : string |
Call a custom validator message replacer. |
|
checkDateTimeOrder ( string $format, string $before, string $after ) : boolean |
Given two date/time strings, check that one is after the other. |
|
doReplacements ( string $message, string $attribute, string $rule, array $parameters ) : string |
Replace all error message place-holders with actual values. |
|
explodeRules ( string | array $rules ) : array |
Explode the rules into an array of rules. |
|
getAttribute ( string $attribute ) : string |
Get the displayable name of the attribute. |
|
getAttributeList ( array $values ) : array |
Transform an array of attributes to their displayable form. |
|
getAttributeType ( string $attribute ) : string |
Get the data type of the given attribute. |
|
getDateFormat ( string $attribute ) : string | null |
Get the date format for an attribute if it has one. |
|
getDateTimeWithOptionalFormat ( string $format, string $value ) : DateTime | null |
Get a DateTime instance from a string. |
|
getExistCount ( string $table, string $column, mixed $value, array $parameters ) : integer |
Get the number of records that exist in storage. |
|
getExtraConditions ( array $segments ) : array |
Get the extra conditions for a unique / exists rule. |
|
getExtraExistConditions ( array $parameters ) : array |
Get the extra exist conditions. |
|
getInlineMessage ( string $attribute, string $lowerRule, array $source = null ) : string |
Get the inline message for a rule if it exists. |
|
getMessage ( string $attribute, string $rule ) : string |
Get the validation message for an attribute and rule. |
|
getPresentCount ( array $attributes ) : integer |
Get the number of attributes in a list that are present. |
|
getRule ( string $attribute, string | array $rules ) : array | null |
Get a rule and its parameters for a given attribute. |
|
getSize ( string $attribute, mixed $value ) : mixed |
Get the size of an attribute. |
|
getSizeMessage ( string $attribute, string $rule ) : string |
Get the proper error message for an attribute and size rule. |
|
getStringSize ( string $value ) : integer |
Get the size of a string. |
|
getUniqueExtra ( array $parameters ) : array |
Get the extra conditions for a unique rule. |
|
getUniqueIds ( array $parameters ) : array |
Get the excluded ID column and value for the unique rule. |
|
getValue ( string $attribute ) : mixed |
Get the value of a given attribute. |
|
hasRule ( string $attribute, string | array $rules ) : boolean |
Determine if the given attribute has a rule in the given set. |
|
isImplicit ( string $rule ) : boolean |
Determine if a given rule implies the attribute is required. |
|
isValidatable ( string $rule, string $attribute, mixed $value ) : boolean |
Determine if the attribute is validatable. |
|
parseArrayRule ( array $rules ) : array |
Parse an array based rule. |
|
parseData ( array $data ) : array |
Parse the data and hydrate the files array. |
|
parseParameters ( string $rule, string $parameter ) : array |
Parse a parameter list. |
|
parseRule ( array | string $rules ) : array |
Extract the rule name and parameters from a rule. |
|
parseStringRule ( string $rules ) : array |
Parse a string based rule. |
|
passesOptionalCheck ( string $attribute ) : boolean |
Determine if the attribute passes any optional check. |
|
presentOrRuleIsImplicit ( string $rule, string $attribute, mixed $value ) : boolean |
Determine if the field is present, or the rule implies required. |
|
replaceAfter ( string $message, string $attribute, string $rule, array $parameters ) : string |
Replace all place-holders for the after rule. |
|
replaceBefore ( string $message, string $attribute, string $rule, array $parameters ) : string |
Replace all place-holders for the before rule. |
|
replaceBetween ( string $message, string $attribute, string $rule, array $parameters ) : string |
Replace all place-holders for the between rule. |
|
replaceDateFormat ( string $message, string $attribute, string $rule, array $parameters ) : string |
Replace all place-holders for the date_format rule. |
|
replaceDifferent ( string $message, string $attribute, string $rule, array $parameters ) : string |
Replace all place-holders for the different rule. |
|
replaceDigits ( string $message, string $attribute, string $rule, array $parameters ) : string |
Replace all place-holders for the digits rule. |
|
replaceDigitsBetween ( string $message, string $attribute, string $rule, array $parameters ) : string |
Replace all place-holders for the digits (between) rule. |
|
replaceIn ( string $message, string $attribute, string $rule, array $parameters ) : string |
Replace all place-holders for the in rule. |
|
replaceMax ( string $message, string $attribute, string $rule, array $parameters ) : string |
Replace all place-holders for the max rule. |
|
replaceMimes ( string $message, string $attribute, string $rule, array $parameters ) : string |
Replace all place-holders for the mimes rule. |
|
replaceMin ( string $message, string $attribute, string $rule, array $parameters ) : string |
Replace all place-holders for the min rule. |
|
replaceNotIn ( string $message, string $attribute, string $rule, array $parameters ) : string |
Replace all place-holders for the not_in rule. |
|
replaceRequiredIf ( string $message, string $attribute, string $rule, array $parameters ) : string |
Replace all place-holders for the required_if rule. |
|
replaceRequiredWith ( string $message, string $attribute, string $rule, array $parameters ) : string |
Replace all place-holders for the required_with rule. |
|
replaceRequiredWithAll ( string $message, string $attribute, string $rule, array $parameters ) : string |
Replace all place-holders for the required_with_all rule. |
|
replaceRequiredWithout ( string $message, string $attribute, string $rule, array $parameters ) : string |
Replace all place-holders for the required_without rule. |
|
replaceRequiredWithoutAll ( string $message, string $attribute, string $rule, array $parameters ) : string |
Replace all place-holders for the required_without_all rule. |
|
replaceSame ( string $message, string $attribute, string $rule, array $parameters ) : string |
Replace all place-holders for the same rule. |
|
replaceSize ( string $message, string $attribute, string $rule, array $parameters ) : string |
Replace all place-holders for the size rule. |
|
requireParameterCount ( integer $count, array $parameters, string $rule ) |
Require a certain number of parameters to be present. |
|
validate ( string $attribute, string $rule ) |
Validate a given attribute against a rule. |
|
validateAccepted ( string $attribute, mixed $value ) : boolean |
Validate that an attribute was "accepted". |
|
validateActiveUrl ( string $attribute, mixed $value ) : boolean |
Validate that an attribute is an active URL. |
|
validateAfter ( string $attribute, mixed $value, array $parameters ) : boolean |
Validate the date is after a given date. |
|
validateAfterWithFormat ( string $format, mixed $value, array $parameters ) : boolean |
Validate the date is after a given date with a given format. |
|
validateAlpha ( string $attribute, mixed $value ) : boolean |
Validate that an attribute contains only alphabetic characters. |
|
validateAlphaDash ( string $attribute, mixed $value ) : boolean |
Validate that an attribute contains only alpha-numeric characters, dashes, and underscores. |
|
validateAlphaNum ( string $attribute, mixed $value ) : boolean |
Validate that an attribute contains only alpha-numeric characters. |
|
validateArray ( string $attribute, mixed $value ) : boolean |
Validate that an attribute is an array. |
|
validateBefore ( string $attribute, mixed $value, array $parameters ) : boolean |
Validate the date is before a given date. |
|
validateBeforeWithFormat ( string $format, mixed $value, array $parameters ) : boolean |
Validate the date is before a given date with a given format. |
|
validateBetween ( string $attribute, mixed $value, array $parameters ) : boolean |
Validate the size of an attribute is between a set of values. |
|
validateBoolean ( string $attribute, mixed $value ) : boolean |
Validate that an attribute is a boolean. |
|
validateConfirmed ( string $attribute, mixed $value ) : boolean |
Validate that an attribute has a matching confirmation. |
|
validateDate ( string $attribute, mixed $value ) : boolean |
Validate that an attribute is a valid date. |
|
validateDateFormat ( string $attribute, mixed $value, array $parameters ) : boolean |
Validate that an attribute matches a date format. |
|
validateDifferent ( string $attribute, mixed $value, array $parameters ) : boolean |
Validate that an attribute is different from another attribute. |
|
validateDigits ( string $attribute, mixed $value, array $parameters ) : boolean |
Validate that an attribute has a given number of digits. |
|
validateDigitsBetween ( string $attribute, mixed $value, array $parameters ) : boolean |
Validate that an attribute is between a given number of digits. |
|
validateEmail ( string $attribute, mixed $value ) : boolean |
Validate that an attribute is a valid e-mail address. |
|
validateExists ( string $attribute, mixed $value, array $parameters ) : boolean |
Validate the existence of an attribute value in a database table. |
|
validateFilled ( string $attribute, mixed $value ) : boolean |
Validate the given attribute is filled if it is present. |
|
validateImage ( string $attribute, mixed $value ) : boolean |
Validate the MIME type of a file is an image MIME type. |
|
validateIn ( string $attribute, mixed $value, array $parameters ) : boolean |
Validate an attribute is contained within a list of values. |
|
validateInteger ( string $attribute, mixed $value ) : boolean |
Validate that an attribute is an integer. |
|
validateIp ( string $attribute, mixed $value ) : boolean |
Validate that an attribute is a valid IP. |
|
validateMax ( string $attribute, mixed $value, array $parameters ) : boolean |
Validate the size of an attribute is less than a maximum value. |
|
validateMimes ( string $attribute, array $value, array $parameters ) : boolean |
Validate the MIME type of a file upload attribute is in a set of MIME types. |
|
validateMin ( string $attribute, mixed $value, array $parameters ) : boolean |
Validate the size of an attribute is greater than a minimum value. |
|
validateNotIn ( string $attribute, mixed $value, array $parameters ) : boolean |
Validate an attribute is not contained within a list of values. |
|
validateNumeric ( string $attribute, mixed $value ) : boolean |
Validate that an attribute is numeric. |
|
validateRegex ( string $attribute, mixed $value, array $parameters ) : boolean |
Validate that an attribute passes a regular expression check. |
|
validateRequired ( string $attribute, mixed $value ) : boolean |
Validate that a required attribute exists. |
|
validateRequiredIf ( string $attribute, mixed $value, mixed $parameters ) : boolean |
Validate that an attribute exists when another attribute has a given value. |
|
validateRequiredWith ( string $attribute, mixed $value, mixed $parameters ) : boolean |
Validate that an attribute exists when any other attribute exists. |
|
validateRequiredWithAll ( string $attribute, mixed $value, mixed $parameters ) : boolean |
Validate that an attribute exists when all other attributes exists. |
|
validateRequiredWithout ( string $attribute, mixed $value, mixed $parameters ) : boolean |
Validate that an attribute exists when another attribute does not. |
|
validateRequiredWithoutAll ( string $attribute, mixed $value, mixed $parameters ) : boolean |
Validate that an attribute exists when all other attributes do not. |
|
validateSame ( string $attribute, mixed $value, array $parameters ) : boolean |
Validate that two attributes match. |
|
validateSize ( string $attribute, mixed $value, array $parameters ) : boolean |
Validate the size of an attribute. |
|
validateSometimes ( ) : boolean |
"Validate" optional attributes. |
|
validateTimezone ( string $attribute, mixed $value ) : boolean |
Validate that an attribute is a valid timezone. |
|
validateUnique ( string $attribute, mixed $value, array $parameters ) : boolean |
Validate the uniqueness of an attribute value on a given database table. |
|
validateUrl ( string $attribute, mixed $value ) : boolean |
Validate that an attribute is a valid URL. |
|