Laravel-Model-Validation icon indicating copy to clipboard operation
Laravel-Model-Validation copied to clipboard

restoring soft deleted entries throws validation error when "unique" is used

Open manuelro opened this issue 9 years ago • 0 comments

Restoring records while using unique will validate against the same values, because restore triggers a save event, and hence throw the validation exception. You will either have to unset the rules before restoring or modify the 'unique' rule to take it off.

manuelro avatar May 20 '15 07:05 manuelro