public function isValidOrFail($ruleset = null) { if (!$this->isValid($ruleset)) { $this->throwValidationException(); } return true; }