Strange that Rule::unique
doesn't take into the SoftDeletes Global Scope applied on the Model, by default.
But withoutTrashed()
method is available
Rule::unique('users', 'email')->withoutTrashed();
Tip given by @Zubairmohsin33
Only until Jan 16th: coupon RESOLUTION25 for 40% off Yearly/Lifetime membership!
Read more hereStrange that Rule::unique
doesn't take into the SoftDeletes Global Scope applied on the Model, by default.
But withoutTrashed()
method is available
Rule::unique('users', 'email')->withoutTrashed();
Tip given by @Zubairmohsin33