ValidationException

ValidationException class ValidationException extends RuntimeException (View source) Methods void __construct(MessageProvider $provider) Create a new validation exception instance. MessageBag errors() Get the validation error message provider. MessageProvider getMessageProvider() Get the validation error message provider.

ValidationException

ValidationException class ValidationException extends Exception (View source) Properties Validator $validator The validator instance. Response|null $response The recommended response to send to the client.

Validation

Validation Introduction Validation Quickstart Defining The Routes Creating The Controller Writing The Validation Logic Displaying The Validation Errors Form Request Validation Creating Form Requests Authorizing Form Requests Customizing The Error Format Customizing The Error Messages Manually Creating Validators Automatic Redirection Named Error Bags After Validation Hook Working With Error Messages Custom Error Messages Available Validation Rules Conditionally Adding Rules Validating A

Validation

Illuminate\Validation Classes DatabasePresenceVerifier Factory ValidationServiceProvider Validator

ValidatesWhenResolvedTrait::validate()

void validate() Validate the class instance. Return Value void

ValidatesWhenResolvedTrait

ValidatesWhenResolvedTrait trait ValidatesWhenResolvedTrait (View source) Provides default implementation of ValidatesWhenResolved contract. Methods void validate() Validate the class instance.

ValidatesWhenResolved::validate()

void validate() Validate the given class instance. Return Value void

ValidatesWhenResolved

ValidatesWhenResolved interface ValidatesWhenResolved (View source) Methods void validate() Validate the given class instance.

ValidatesRequests::validateWithBag()

void validateWithBag(string $errorBag, Request $request, array $rules, array $messages = array(), array $customAttributes = array()) Validate the given request with the given rules. Parameters string $errorBag Request $request array $rules array $messages array $customAttributes Return Value void Exceptions ValidationException

ValidatesRequests::validateWith()

void validateWith(Validator|array $validator, Request $request = null) Run the validation routine against the given validator. Parameters Validator|array $validator Request $request Return Value void