Validator::addCustomAttributes()

$this addCustomAttributes(array $customAttributes) Add custom attributes to the validator. Parameters array $customAttributes Return Value $this

Validator

Validator class Validator implements Validator (View source) Methods void __construct(TranslatorInterface $translator, array $data, array $rules, array $messages = array(), array $customAttributes = array()) Create a new Validator instance. array parseData(array $data) Parse the data array. $this after(callable|string $callback) After an after validation callback. void sometimes(string $attribute, string|array $rules, callable $callback) Add conditions to a given field base

Validator

Validator class Validator extends Facade (View source) Methods static void swap(mixed $instance) Hotswap the underlying instance behind the facade. from Facade static Expectation shouldReceive() Initiate a mock expectation on the facade. from Facade static mixed getFacadeRoot() Get the root object behind the facade. from Facade static void clearResolvedInstance(string $name) Clear a resolved facade instance. from Facade static void clearResolvedInstances() Clear all of the

Validator

Validator interface Validator implements MessageProvider (View source) Methods MessageBag getMessageBag() Get the messages for the instance. from MessageProvider bool fails() Determine if the data fails the validation rules. array failed() Get the failed validation rules. void sometimes(string $attribute, string|array $rules, callable $callback) Add conditions to a given field based on a Closure. $this after(callable|string $callback) After an after validation callback.

Validation\Rules

Illuminate\Validation\Rules Classes Dimensions Exists In NotIn Unique

ValidationServiceProvider::__construct()

void __construct(Application $app) Create a new service provider instance. Parameters Application $app Return Value void

ValidationServiceProvider::__call()

mixed __call(string $method, array $parameters) Dynamically handle missing method calls. Parameters string $method array $parameters Return Value mixed Exceptions BadMethodCallException

ValidationServiceProvider::when()

array when() Get the events that trigger this service provider to register. Return Value array

ValidationServiceProvider::register()

void register() Register the service provider. Return Value void

ValidationServiceProvider::provides()

array provides() Get the services provided by the provider. Return Value array