trait
Illuminate
/
Foundation
/
Validation
/
ValidatesRequests
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
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