trait Illuminate / Foundation / Validation / ValidatesRequests
You are viewing an older version of the documentation. For the latest, please visit master documentation.

ValidatesRequests

Methods

public

validateWith ( $validator , Request $request ) : array

Run the validation routine against the given validator.

Parameters

public

validate ( Request $request , array $rules , array $messages , array $customAttributes ) : array

Validate the given request with the given rules.

Parameters

  • $request Request
  • $rules array
  • $messages array
  • $customAttributes array
public

validateWithBag ( $errorBag , Request $request , array $rules , array $messages , array $customAttributes ) : array

Validate the given request with the given rules.

Parameters

  • $errorBag string
  • $request Request
  • $rules array
  • $messages array
  • $customAttributes array
protected

getValidationFactory ( ) : Factory

Get a validation factory instance.