Assume, you are trying to create a new user, with a User model ( using soft deletes ) having a unique rule for it\'s email address, but there exists a trashed user within th
Your Eloquent model should have the $softDeletes property set. If so, then when you perform a WHERE check, like User::where('username', 'jimbob'), Eloquent will automatically add in the query WHERE deleted_at IS NULL... which excludes soft deleted items.