Email verification and mailer interception package for Laravel
Do not send any email to an unverified or blacklisted customer. This package helps solving this task., (*1)
, (*2)
Quickstart
composer require ipunkt/laravel-email-verification-interception:dev-master
Add to providers
in config/app.php
:, (*3)
\Ipunkt\Laravel\EmailVerificationInterception\ServiceProvider::class,
Installation
Add to your composer.json following lines, (*4)
"require": {
"ipunkt/laravel-email-verification-interception": "dev-master"
}
Add \Ipunkt\Laravel\EmailVerificationInterception\ServiceProvider::class,
to providers
in app/config/app.php
., (*5)
Run php artisan vendor:publish --provider="Ipunkt\Laravel\EmailVerificationInterception\ServiceProvider" --tag=config
to publish the config., (*6)
We ship an activation mail template. For customizing this run php artisan vendor:publish --provider="Ipunkt\Laravel\EmailVerificationInterception\ServiceProvider" --tag=view
., (*7)
We also provide migration to create a database table. Laravel automatically migrates it. If you want to customize it just run php artisan vendor:publish --provider="Ipunkt\Laravel\EmailVerificationInterception\ServiceProvider" --tag=migrations
, (*8)
Configuration
The main configuration settings handle the activation mail stuff., (*9)
Activation section
register-event-listening
We can register event listening by default. So every time a Registered event is fired, the email service interacts and sends a mailable for account confirmation., (*10)
subject
Mail subject for activation mail. You can change the subject. This subject will be used for the shipped ActivateEmail mailable., (*11)
from
You have to set your sender data for the activation mail., (*12)
view
The template view for the activation mail sent., (*13)
You can customize this view template content by publishing it to your code base by typing php artisan vendor:publish --provider="Ipunkt\Laravel\EmailVerificationInterception\ServiceProvider" --tag=view
., (*14)
User Model
Sometimes the user model has a different model class. You can set it here., (*15)