Factory
class Factory implements Factory (View source)
Methods
void
__construct(
TranslatorInterface $translator,
Container $container = null)
Create a new Validator factory instance.
make(
array $data,
array $rules,
array $messages = array(),
array $customAttributes = array())
Create a new Validator instance.
void
void
extendImplicit(
string $rule,
Closure|string $extension,
string $message = null)
Register a custom implicit validator extension.
void
TranslatorInterface
getTranslator()
Get the Translator implementation.
getPresenceVerifier()
Get the Presence Verifier implementation.
void
setPresenceVerifier(
PresenceVerifierInterface $presenceVerifier)
Set the Presence Verifier implementation.
Details
at line line 76
void
__construct(
TranslatorInterface $translator,
Container $container = null)
Create a new Validator factory instance.
at line line 91
Validator
make(
array $data,
array $rules,
array $messages = array(),
array $customAttributes = array())
Create a new Validator instance.
at line line 162
void
extend(
string $rule,
Closure|string $extension,
string $message = null)
Register a custom validator extension.
at line line 179
void
extendImplicit(
string $rule,
Closure|string $extension,
string $message = null)
Register a custom implicit validator extension.
at line line 195
void
replacer(
string $rule,
Closure|string $replacer)
Register a custom implicit validator message replacer.
at line line 226
PresenceVerifierInterface
getPresenceVerifier()
Get the Presence Verifier implementation.
at line line 237
void
setPresenceVerifier(
PresenceVerifierInterface $presenceVerifier)
Set the Presence Verifier implementation.