Best Laravel Disposable Email Detector Package (2025)

Are you tired of fake or temporary email signups in your Laravel app?

Meet erag/laravel-disposable-email, the best Laravel package to detect and block disposable email addresses during form validation or runtime checks!

✅ Already covers 106,000+ disposable domains and supports Laravel 8, 9, 10, 11, 12.


🚀 Why You Need a Disposable Email Detection Package?

Disposable emails are used to bypass real email verification, spam systems, and create fake accounts.

Blocking them can:

  • Improve your user quality
  • Protect your platform from spammers
  • Reduce fake registrations
  • Maintain a clean email database

🌟 Why erag/laravel-disposable-email Is the Best Choice?

Here’s why developers love it:

  • 🔥 106,580+ known disposable domains already included
  • 🧠 Smart validation rule for quick integration
  • ⚙️ Runtime checking via helper and facade
  • 🧩 Blade directive for easy frontend conditionals
  • 🌐 Auto-sync from trusted remote sources
  • ✏️ Custom blacklist support (no coding needed)
  • Zero-configuration setup with artisan command
  • 📦 Optimized for performance even with a huge domain list

📦 How to Install in Laravel?

Installation is super easy:

composer require erag/laravel-disposable-email

Then publish the configuration file:

php artisan erag:install-disposable-email

Done! 🎯


✅ How to Use It?

1. Form Request Validation

Use the custom rule:

use EragLaravelDisposableEmail\Rules\DisposableEmailRule;

$request->validate([
    'email' => ['required', 'email', new DisposableEmailRule()],
]);

or use string-based validation:

$request->validate([
    'email' => 'required|email|disposable_email',
]);

2. Check Directly at Runtime

use DisposableEmail;

if (DisposableEmail::isDisposable('[email protected]')) {
    // Do something
}

3. Blade Directive (Frontend Condition)

@disposableEmail('[email protected]')
    Disposable email detected!
@else
    Valid email.
@enddisposableEmail

🔄 How to Sync Disposable Domain List?

You can manually update the disposable domain list anytime:

php artisan erag:sync-disposable-email-list

It will fetch fresh domains from trusted remote sources automatically.


🧩 How to Add Your Own Disposable Domains?

📌 No Coding Needed!

Just create a file:

storage/app/blacklist_file/disposable_domains.txt

and add domains like:

tempmail.com
fakemail.org
trashmail.io

Each line = one domain name.

The package will automatically detect your custom domains.


✨ Conclusion

If you are building a serious Laravel app in 2025,

blocking disposable emails is a must to ensure real, quality users.

With erag/laravel-disposable-email, you can easily:

  • Validate emails at registration
  • Prevent fake signups
  • Keep your system clean & secure

🚀 Install it today and protect your Laravel application in minutes!


🔗 Install Now:

👉 Packagist Link

👉 GitHub Repo

  • Laravel disposable email validation
  • Best Laravel package block disposable email
  • Laravel email validation temporary
  • Block temp email Laravel
  • Laravel fake email detector
  • Disposable email checker Laravel