Skip to content

Commit cd2aca9

Browse files
committed
Provide the validation exception an instance of the validator instead of a message bag
1 parent 26cf06a commit cd2aca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/Validates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function getErrors() : MessageProvider
105105
public function save(array $options = [])
106106
{
107107
if ($this->isInvalid()) {
108-
throw new ValidationException($this->getErrors());
108+
throw new ValidationException($this->getValidator());
109109
}
110110

111111
return parent::save($options);

0 commit comments

Comments
 (0)