alexisgeneau/mailvalidate

Add Mail validator into Laravel application
75 2
Install
composer require alexisgeneau/mailvalidate
License:MIT
Last Updated:Oct 26, 2022
Links: GitHub  ·  Packagist
Maintainer: alexisgeneau

MailValidate

Installation

Add MailValidate to your composer.json file to require MailValidate :

    require : {
        "alexisgeneau/mailvalidate": "dev-master"
    }

Update Composer :

    composer update

The next step is to add the service provider to config/app.php :

    Alexisgeneau\MailValidate\MailValidateServiceProvider::class,

Publish

The next step is to publish files in your application with :

    php artisan vendor:publish --force

Warning ! This command will replace 'AuthController' in your application to edit PostLogin function.

Migrate

Run migrate command to add column on users in your database :

    php artisan migrate

Add 'confirmation_token' and 'confirmed' in your $fillable on user model.

Routes

To have mail validation add this lines in your routes.php

    Route::get('register/verify/{confirmationToken}', [
        'as' => 'confirmation_path',
        'uses' => 'RegistrationController@confirm'
    ]);

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

644,549,754 9,698
laravel/framework

The Laravel Framework.

598,760,099 34,966
laravel/tinker

Powerful REPL for the Laravel framework.

507,193,856 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

423,477,751 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

403,217,078 4,664