PHPackages                             intellow/reuse-soft-deleted-user-email - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. intellow/reuse-soft-deleted-user-email

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

intellow/reuse-soft-deleted-user-email
======================================

When you soft delete a user, this trait allows that email address to be registered again in a different user account

0.2.3(3y ago)1618MITPHPPHP ^7.1|^8.0CI failing

Since Nov 26Pushed 3y ago2 watchersCompare

[ Source](https://github.com/intellow/reuse-soft-deleted-user-email)[ Packagist](https://packagist.org/packages/intellow/reuse-soft-deleted-user-email)[ Docs](https://github.com/intellow/reuse-soft-deleted-user-email)[ RSS](/packages/intellow-reuse-soft-deleted-user-email/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

Reuse Soft Deleted Emails
=========================

[](#reuse-soft-deleted-emails)

[![Latest Version on Packagist](https://camo.githubusercontent.com/24872ea2abf2d4fa312e136c56aa7e98193e165044cc1b36abd972a02feac9cb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e74656c6c6f772f72657573652d736f66742d64656c657465642d757365722d656d61696c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/intellow/reuse-soft-deleted-user-email)[![Build Status](https://camo.githubusercontent.com/8628b397103947cb478950fec74ad0ef130a13e3645f5cf83b47677e3019d98b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f696e74656c6c6f772f72657573652d736f66742d64656c657465642d757365722d656d61696c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/intellow/reuse-soft-deleted-user-email)[![Quality Score](https://camo.githubusercontent.com/aa7bb2054d7715b83c6fefd862aca3661b88a2272d458be8e860a2050eea22b3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f696e74656c6c6f772f72657573652d736f66742d64656c657465642d757365722d656d61696c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/intellow/reuse-soft-deleted-user-email)[![Total Downloads](https://camo.githubusercontent.com/0d05ab89d85cb2ca39ea2fdf26d2af45c5025bdd706e6b8102891ca9eb8150a3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e74656c6c6f772f72657573652d736f66742d64656c657465642d757365722d656d61696c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/intellow/reuse-soft-deleted-user-email)

When you soft delete a user in Laravel, that email cannot be registered again since the email field on the users table must be unique.

This package solves this problem and allows you to soft delete a user record, retain the original email as history, and still register a new user account with the same email address.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require intellow/reuse-soft-deleted-user-email
```

Usage
-----

[](#usage)

In a Laravel app with users and SoftDeletes, add the trait to your User model

```
class User extends Authenticatable
{
    use SoftDeletes;
    use ReuseSoftDeletedEmails;
```

Now when a user is deleted, their email in the database will change from `user@email.com` to `user@email.com1574789049_deleted` where 1574789049 is the timestamp when the user was deleted.

This allows another user to be registered with the email `user@email.com` while retaining the record of the old deleted user.

The package adds an accessor to the User model, so if you access the trashed user and get their email, you will see `user@email.com` without the appended timestamp\_deleted string.

### Expiration Date

[](#expiration-date)

Please note this package will cease to work on Sat 20 Nov 2286 05:46:40 PM UTC when the unix timestamp adds an 11th digit.

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Intellow](https://github.com/intellow)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~272 days

Total

5

Last Release

1268d ago

PHP version history (2 changes)0.1PHP ^7.1

0.2.2PHP ^7.1|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/40676515?v=4)[Intellow](/maintainers/Intellow)[@intellow](https://github.com/intellow)

---

Top Contributors

[![intellow](https://avatars.githubusercontent.com/u/40676515?v=4)](https://github.com/intellow "intellow (5 commits)")[![iAmKevinMcKee](https://avatars.githubusercontent.com/u/4503765?v=4)](https://github.com/iAmKevinMcKee "iAmKevinMcKee (2 commits)")

---

Tags

intellowreuse-soft-deleted-user-email

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/intellow-reuse-soft-deleted-user-email/health.svg)

```
[![Health](https://phpackages.com/badges/intellow-reuse-soft-deleted-user-email/health.svg)](https://phpackages.com/packages/intellow-reuse-soft-deleted-user-email)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)[illuminate/cookie

The Illuminate Cookie package.

224.3M122](/packages/illuminate-cookie)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
