adamibrahim/email_confirm

Laravel 5.6 Natively Email confirmation Package

v0.2.1 2018-02-23 07:40 UTC

README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Laravel 5.6 Natively Email confirmation Package Using Queue to send Emails

Demo

You can see working demo

Install

Laravel fresh installation
$ laravel new yourappname
Create / configure .env file
  • database access
  • QUEUE_DRIVER=database
  • Email configuration
Install the package Via Composer
$ composer require adamibrahim/email_confirm
If you installing at laravel 5.5 or higher then you may go directly to Publish other wise you will need to edit composer.json and register the Service Provider
composer.json

Add this code to your composer.json under the autoload at your main directory

"psr-4": {
            "Adam\\EmailConfirm\\": "vendor/adamibrahim/email_confirm/src"
        }
Service Provider

At file config/app.php register service provider under * Package Service Providers...

Adam\EmailConfirm\EmailConfirmServiceProvider::class,
Publishing
This will overwrite your User.php model
$ php artisan vendor:publish --tag=emailConfirm --force
Database Migrating

run the Artisan migration command

$ php artisan migrate
Job Queues

I'm Using Queues to send emails (speed up the app) however if you don't wish to use it you can change at your .env file

QUEUE_DRIVER=sync

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

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

Credits

License

The MIT License (MIT). Please see License File for more information.