Illuminate/Validation/Validator

From Woozle Writes Code
< Illuminate‎ | Validation
Revision as of 01:05, 5 June 2023 by Woozle (talk | contribs) (Created page with "{{fmt/title|<u>Illuminate \ Validation \ Validator</u> class}} * '''defined in''' [https://github.com/laravel/framework/blob/10.x/src/Illuminate/Validation/Validator.php GitHub: 10.x] * '''defined as''' <tt>class Validator implements ValidatorContract</tt> ** '''implements''' {{l/nspace|Illuminate\Contracts\Validation\Validator}} as ValidatorContract ** '''use''' *** {{l/nspace|Illuminate\Validation\Validator\Concerns\FormatsMessages}} *** {{l/nspace|Illuminate\Valid...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Illuminate \ Validation \ Validator class
  • defined in GitHub: 10.x
  • defined as class Validator implements ValidatorContract
    • implements Illuminate\Contracts\Validation\Validator as ValidatorContract
    • use
    • 'methods:
      • public function __construct([...])
      • public function parseData(array $data)
      • protected function replacePlaceholders($data)
      • protected function replacePlaceholderInString(string $value)
      • public function after($callback)
      • public function passes()
      • public function fails()
      • protected function shouldBeExcluded($attribute)
      • protected function removeAttribute($attribute)
      • public function validate()
      • public function validateWithBag(string $errorBag)
      • public function safe(array $keys = null)
      • public function validated()
      • protected function validateAttribute($attribute, $rule)
      • protected function dependsOnOtherFields($rule)
      • protected function getExplicitKeys($attribute)
      • protected function getPrimaryAttribute($attribute)
      • protected function replaceDotInParameters(array $parameters)
      • protected function replaceAsterisksInParameters(array $parameters, array $keys)
      • protected function isValidatable($rule, $attribute, $value)
      • protected function presentOrRuleIsImplicit($rule, $attribute, $value)
      • protected function isImplicit($rule)
      • protected function passesOptionalCheck($attribute)
      • protected function isNotNullIfMarkedAsNullable($rule, $attribute)
      • protected function hasNotFailedPreviousRuleIfPresenceRule($rule, $attribute)
      • protected function validateUsingCustomRule($attribute, $value, $rule)
      • protected function shouldStopValidating($attribute)
      • public function addFailure($attribute, $rule, $parameters = [])
      • protected function excludeAttribute(string $attribute)
      • public function valid()
      • public function invalid()
      • protected function attributesThatHaveMessages()
      • public function failed()
      • public function messages()
      • public function errors()
      • public function getMessageBag()
      • public function hasRule($attribute, $rules)
      • protected function getRule($attribute, $rules)
      • public function attributes()
      • public function getData()
      • public function setData(array $data)
      • protected function getValue($attribute)
      • public function getRules()
      • public function getRulesWithoutPlaceholders()
      • public function setRules(array $rules)
      • public function addRules($rules)
      • public function sometimes($attribute, $rules, callable $callback)
      • private function dataForSometimesIteration(string $attribute, $removeLastSegmentOfAttribute)
      • public function stopOnFirstFailure($stopOnFirstFailure = true)
      • public function addExtensions(array $extensions)
      • public function addImplicitExtensions(array $extensions)
      • public function addDependentExtensions(array $extensions)
      • public function addExtension($rule, $extension)
      • public function addImplicitExtension($rule, $extension)
      • public function addDependentExtension($rule, $extension)
      • public function addReplacers(array $replacers)
      • public function addReplacer($rule, $replacer)
      • public function setCustomMessages(array $messages)
      • public function setAttributeNames(array $attributes)
      • public function addCustomAttributes(array $customAttributes)
      • public function setImplicitAttributesFormatter(callable $formatter = null)
      • public function setValueNames(array $values)
      • public function addCustomValues(array $customValues)
      • public function setFallbackMessages(array $messages)
      • public function getPresenceVerifier($connection = null)
      • public function setPresenceVerifier(PresenceVerifierInterface $presenceVerifier)
      • public function setException($exception)
      • public function getTranslator()
      • public function setTranslator(Translator $translator)
      • public function setContainer(Container $container)
      • protected function callExtension($rule, $parameters)
      • protected function callClassBasedExtension($callback, $parameters)
      • public function __call($method, $parameters)