ipunkt / laravel-email-verification-interception
Email Verification and Mailer Interception package for controlling email sending.
Requires
- php: ^7.0
- illuminate/auth: ^5.3
- illuminate/contracts: ^5.3
- illuminate/database: ^5.3
- illuminate/events: ^5.3
- illuminate/mail: ^5.3
- illuminate/support: ^5.3
- ipunkt/laravel-package-manager: ^0.2.0
- nesbot/carbon: ^1.21
This package is auto-updated.
Last update: 2023-03-23 02:47:52 UTC
README
Do not send any email to an unverified or blacklisted customer. This package helps solving this task.
Quickstart
composer require ipunkt/laravel-email-verification-interception:dev-master
Add to providers
in config/app.php
:
\Ipunkt\Laravel\EmailVerificationInterception\ServiceProvider::class,
Installation
Add to your composer.json following lines
"require": {
"ipunkt/laravel-email-verification-interception": "dev-master"
}
Add \Ipunkt\Laravel\EmailVerificationInterception\ServiceProvider::class,
to providers
in app/config/app.php
.
Run php artisan vendor:publish --provider="Ipunkt\Laravel\EmailVerificationInterception\ServiceProvider" --tag=config
to publish the config.
We ship an activation mail template. For customizing this run php artisan vendor:publish --provider="Ipunkt\Laravel\EmailVerificationInterception\ServiceProvider" --tag=view
.
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
Configuration
The main configuration settings handle the activation mail stuff.
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.
subject
Mail subject for activation mail. You can change the subject. This subject will be used for the shipped ActivateEmail mailable.
from
You have to set your sender data for the activation mail.
view
The template view for the activation mail sent.
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
.
User Model
Sometimes the user model has a different model class. You can set it here.