trait Illuminate / Foundation / Validation / ValidatesRequests

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 $attributes ) : array

Validate the given request with the given rules.

Parameters

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

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

Validate the given request with the given rules.

Parameters

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

getValidationFactory ( ) : Factory

Get a validation factory instance.