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

Commit 49ef00d

Browse files
committed
validateUniques() is now default for save procedures
This is actually needed if you're, for instance, using EloquentUserProvider.
1 parent d128590 commit 49ef00d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ardent/Ardent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ protected function internalSave(array $rules = array(),
624624
self::saved($afterSave);
625625
}
626626

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

629629
if ($force || $valid) {
630630
return $this->performSave($options);

0 commit comments

Comments
 (0)