Strange that Rule::unique
doesn't take into the SoftDeletes Global Scope applied on the Model, by default.
But withoutTrashed()
method is available
1Rule::unique('users', 'email')->withoutTrashed();
Tip given by @Zubairmohsin33
Strange that Rule::unique
doesn't take into the SoftDeletes Global Scope applied on the Model, by default.
But withoutTrashed()
method is available
1Rule::unique('users', 'email')->withoutTrashed();
Tip given by @Zubairmohsin33