Download the PHP package bestmomo/laravel-email-confirmation without Composer
On this page you can find all versions of the php package bestmomo/laravel-email-confirmation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bestmomo/laravel-email-confirmation
More information about bestmomo/laravel-email-confirmation
Files in bestmomo/laravel-email-confirmation
Package laravel-email-confirmation
Short Description Email address confirmation with Laravel
License MIT
Homepage http://github.com/laravel-email-confirmation
Informations about the package laravel-email-confirmation
Laravel Email Confirmation
This package is to add email confirmation to Laravel 5.4 or 5.5 project.
It should be used after php artisan make:auth
command but can also be added to existing project.
There is a french presentation of this package.
Features
- create a migration to add confirmation columns to users table
- create routes for confirmation
confirmation/resend
confirmation/{id}/{token}
- add an artisan command to override login and register views
- send email notification with registration
- add translations for notification (there are french, english, arabic, swedish and spanish translation ones)
- block login for not confirmed user and launch an alert with resend link for notification
- block auto login on password reset for not confirmed user
Installation
Add package to your composer.json file :
For Laravel 5.4 add service provider to config/app.php
(with Laravel 5.5 there is the package discovery):
From V1.1.5 you must publish the migration with:
Run the published migration:
Change trait reference in LoginController
:
Change trait reference in RegisterController
:
Change trait reference in ResetPasswordController
:
Publish
- If you have used the
php artisan make:auth
command
Override login and register views to get confirmation alerts :
- If you have custom scaffold
You must add alerts in login and register views. Here are 2 examples with Bootstrap.
Login view :
Register view :
Optional Publish
If you want to do some changes or add a language you can publish translations :
If you want to do some changes to confirmation notification you can make a copy in App :