protected function validate(array $data)
    {
        $validator = Validator::make($data, $this->rules);

        if ($validator->fails()) {
            throw new FormValidationException(trans('dashboard::dashboard.errors.form.validation'), $validator);
        }
    }
protected function validate(array $data)
    {
        $validator = Validator::make($data, $this->rules);

        if ($validator->fails()) {
            throw new FormValidationException(trans('dashboard::dashboard.errors.form.validation'), $validator);
        }
    }
protected function validate ( array $ data ) { $ validator = Validator :: make ( $ data , $ this -> rules ) ; if ( $ validator -> fails ( ) ) { throw new FormValidationException ( trans ( 'dashboard::dashboard.errors.form.validation' ) , $ validator ) ; } }
Validate the form submission.

@param array $data

@throws FormValidationException
Validate the form submission .