Laravel-Model-Validation
Laravel-Model-Validation copied to clipboard
restoring soft deleted entries throws validation error when "unique" is used
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.