ValidatesRequests

ValidatesRequests

trait ValidatesRequests (View source)

Methods

void validateWith(Validator|array $validator, Request $request = null)

Run the validation routine against the given validator.

void validate(Request $request, array $rules, array $messages = array(), array $customAttributes = array())

Validate the given request with the given rules.

void validateWithBag(string $errorBag, Request $request, array $rules, array $messages = array(), array $customAttributes = array())

Validate the given request with the given rules.

doc_Laravel
2016-11-02 16:44:34
Comments
Leave a Comment

Please login to continue.