All Projects → Propaganistas → Laravel Disposable Email

Propaganistas / Laravel Disposable Email

Disposable email address validator for Laravel

Projects that are alternatives of or similar to Laravel Disposable Email

Laravel Welcome Notification
Send a welcome notification to new users
Stars: ✭ 299 (+103.4%)
Mutual labels:  laravel, mail
Laravel Mailable Test
An artisan command to easily test mailables
Stars: ✭ 143 (-2.72%)
Mutual labels:  laravel, mail
Mailgun
Mailgun package for Laravel
Stars: ✭ 297 (+102.04%)
Mutual labels:  laravel, mail
Laravel Mail Viewer
View all the mailables in your laravel app at a single place
Stars: ✭ 315 (+114.29%)
Mutual labels:  laravel, mail
Laravel Url Signer
Create and validate signed URLs with a limited lifetime
Stars: ✭ 611 (+315.65%)
Mutual labels:  laravel, mail
Laravel Mail Preview
A mail driver to quickly preview mail
Stars: ✭ 851 (+478.91%)
Mutual labels:  laravel, mail
Laravel Mailbox
Catch incoming emails in your Laravel application
Stars: ✭ 783 (+432.65%)
Mutual labels:  laravel, mail
Laravel Mail Editor
MailEclipse ⚡ Laravel Mailable Editor!
Stars: ✭ 1,714 (+1065.99%)
Mutual labels:  laravel, mail
Laravel Auth0
Laravel plugin for Auth0
Stars: ✭ 143 (-2.72%)
Mutual labels:  laravel
Laravel Ide Helper
Laravel IDE Helper
Stars: ✭ 11,893 (+7990.48%)
Mutual labels:  laravel
Mu4e Alert
Desktop notifications and modeline display for mu4e
Stars: ✭ 143 (-2.72%)
Mutual labels:  mail
Laravel Themer
Multi theme support for Laravel application
Stars: ✭ 142 (-3.4%)
Mutual labels:  laravel
Flarum
Simple forum software for building great communities.
Stars: ✭ 12,190 (+8192.52%)
Mutual labels:  laravel
Youtube
Upload a video to a single YouTube channel with Laravel 5.
Stars: ✭ 143 (-2.72%)
Mutual labels:  laravel
Speedy
🚄A Laravel Admin Package to create a website quickly
Stars: ✭ 146 (-0.68%)
Mutual labels:  laravel
Laravel Postmark
A Postmark adapter for Laravel
Stars: ✭ 143 (-2.72%)
Mutual labels:  laravel
Django Mail Templated
Send emails using Django template system
Stars: ✭ 146 (-0.68%)
Mutual labels:  mail
Laravel Emoji
😄 This package assist you in getting started with emoji easily.
Stars: ✭ 146 (-0.68%)
Mutual labels:  laravel
Translug
中文的 url slug 支持
Stars: ✭ 145 (-1.36%)
Mutual labels:  laravel
Laravel Rethinkdb
RethinkDB adapter for Laravel (with Eloquent support)
Stars: ✭ 144 (-2.04%)
Mutual labels:  laravel

Laravel Disposable Email

Tests Latest Stable Version Total Downloads License

Adds a validator to Laravel for checking whether a given email address isn't originating from disposable email services such as Mailinator, Guerillamail, ... Uses the disposable domains blacklist from andreis/disposable-email-domains by default.

Installation

  1. Run the Composer require command to install the package:

    composer require propaganistas/laravel-disposable-email
    
  2. If you don't use auto-discovery, open up your app config and add the Service Provider to the $providers array:

    'providers' => [
       ...
    
       Propaganistas\LaravelDisposableEmail\DisposableEmailServiceProvider::class,
    ],
    
  3. Publish the configuration file and adapt the configuration as desired:

    php artisan vendor:publish --tag=laravel-disposable-email
    
  4. Run the following artisan command to fetch an up-to-date list of disposable domains:

    php artisan disposable:update
    
  5. (optional) In your languages directory, add for each language an extra language line for the validator:

    'indisposable' => 'Disposable email addresses are not allowed.',
    
  6. (optional) It's highly advised to update the disposable domains list regularly. You can either run the command yourself now and then or, if you make use of Laravel's scheduler, include it over there (App\Console\Kernel):

    protected function schedule(Schedule $schedule)
    {
        $schedule->command('disposable:update')->weekly();
    }
    

Usage

Use the indisposable validator to ensure a given field doesn't hold a disposable email address. You'll probably want to add it after the email validator to make sure a valid email is passed through:

'field' => 'email|indisposable',
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].