PHP Class Laracasts\Validation\FormValidator

ファイルを表示 Open project: laracasts/validation Class Usage Examples

Protected Properties

Property Type Description
$messages array
$validation Laracasts\Validation\ValidatorInterface
$validator Laracasts\Validation\FactoryInterface

Public Methods

Method Description
__construct ( Laracasts\Validation\FactoryInterface $validator )
getValidationErrors ( ) : mixed
getValidationMessages ( ) : mixed
getValidationRules ( ) : array
validate ( mixed $formData ) : mixed Validate the form data

Protected Methods

Method Description
normalizeFormData ( mixed $formData ) : array Normalize the provided data to an array.

Method Details

__construct() public method

public __construct ( Laracasts\Validation\FactoryInterface $validator )
$validator Laracasts\Validation\FactoryInterface

getValidationErrors() public method

public getValidationErrors ( ) : mixed
return mixed

getValidationMessages() public method

public getValidationMessages ( ) : mixed
return mixed

getValidationRules() public method

public getValidationRules ( ) : array
return array

normalizeFormData() protected method

Normalize the provided data to an array.
protected normalizeFormData ( mixed $formData ) : array
$formData mixed
return array

validate() public method

Validate the form data
public validate ( mixed $formData ) : mixed
$formData mixed
return mixed

Property Details

$messages protected_oe property

protected array $messages
return array

$validation protected_oe property

protected ValidatorInterface,Laracasts\Validation $validation
return Laracasts\Validation\ValidatorInterface

$validator protected_oe property

protected FactoryInterface,Laracasts\Validation $validator
return Laracasts\Validation\FactoryInterface