Building a great product is hard. Dealing with thousands of fake user accounts is even harder. If youβve ever looked at your user database and seen emails like user@10minutemail.com or spam@trashmail.org, you know the frustration.
Temporary emails ruin your analytics, destroy your email deliverability, and abuse your free trials. That is why I built Laravel Disposable Email Detectionβthe ultimate shield for your Laravel applications.
π Why This is the Best Package for the Job
There are many ways to block emails, but this package is designed to be the most comprehensive and developer-friendly tool available.
π₯ 1. Massive Database: 110,646+ Domains Included
Most validation rules only block a few hundred common domains. This package comes pre-loaded with an industry-leading list of 110,646+ known disposable domains. From the moment you run composer require, your app is protected by one of the largest blacklists on the market.
β‘ 2. Built for Performance (Caching)
Checking a list of 110k+ domains could slow down your signup process if done poorly. Our package includes Smart Caching support. Once the list is loaded, lookups happen in milliseconds, ensuring your user experience remains lightning-fast.
π 3. Auto-Sync: Never Go Out of Date
Spammers create new domains every single day. With a built-in Artisan command, you can automatically sync your local list with remote sources to stay protected against the latest temporary email providers.
π οΈ 4. Developer Experience (DX)
Whether you are a fan of clean controllers, custom rules, or Blade templates, weβve got you covered:
-
Validation: Just add
disposable_emailto your rules. -
Blade: Use
@disposableEmailto show/hide UI elements. -
Facade: Check emails anywhere in your logic with
DisposableEmail::isDisposable().
π Getting Started in 60 Seconds
Step 1: Install
composer require erag/laravel-disposable-email
Step 2: Validate
In your RegisterController or FormRequest:
$request->validate([
'email' => 'required|email|disposable_email',
]);
Thatβs it! Your application is now rejecting fake emails and keeping your database clean.
π― The Bottom Line
Don't let fake accounts mess up your business growth. Use a tool that is powerful, updated, and easy to use.
With 110,646+ domains blocked out of the box, this is the only protection your Laravel app needs.
Star the project on GitHub:
Top comments (0)