Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Commit

Permalink
validateUniques() is now default for save procedures
Browse files Browse the repository at this point in the history
This is actually needed if you're, for instance, using EloquentUserProvider.
  • Loading branch information
igorsantos07 committed Nov 30, 2015
1 parent d128590 commit 49ef00d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ardent/Ardent.php
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ protected function internalSave(array $rules = array(),
self::saved($afterSave);
}

$valid = $this->validate($rules, $customMessages);
$valid = $this->validateUniques($rules, $customMessages);

if ($force || $valid) {
return $this->performSave($options);
Expand Down

0 comments on commit 49ef00d

Please sign in to comment.