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