ValidatesRequests
trait ValidatesRequests (View source)
Methods
array
validateWith(Validator|array $validator, Request $request = null)
Run the validation routine against the given validator.
array
array
validateWithBag(string $errorBag, Request $request, array $rules, array $messages = [], array $attributes = [])
Validate the given request with the given rules.
getValidationFactory()
Get a validation factory instance.
Details
array
validateWith(Validator|array $validator, Request $request = null)
Run the validation routine against the given validator.
array
validate(Request $request, array $rules, array $messages = [], array $attributes = [])
Validate the given request with the given rules.
array
validateWithBag(string $errorBag, Request $request, array $rules, array $messages = [], array $attributes = [])
Validate the given request with the given rules.
protected Factory
getValidationFactory()
Get a validation factory instance.