-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
It would be nice to handle validation like $this->registrationForm->validate();where necessary.
Here are the untested suggested code.
public function validate(array $formData = null)
{
$this->validation = $this->validator->make(
$formData ?: Input::all(),
$this->getValidationRules(),
$this->getValidationMessages()
);
if ($this->validation->fails())
{
throw new FormValidationException('Validation failed', $this->getValidationErrors());
}
return true;
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels