2017 © Pedro Peláez
 

library laravel-email-confirmation

Email confirmation integration for the Laravel framework.

image

tebros/laravel-email-confirmation

Email confirmation integration for the Laravel framework.

  • Tuesday, January 30, 2018
  • by Tebros
  • Repository
  • 0 Watchers
  • 1 Stars
  • 38 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Laravel E-Mail Confirmation

Latest Version on Packagist ![Software License][ico-license] Total Downloads, (*1)

This package integrates an email confirmation into the default laravel authentification., (*2)

It is has been developed and tested for Laravel 5.5 but it should also work with other versions of Laravel., (*3)

Installation

Make use of composer to require this package., (*4)

The installation appends a function call in the routes/web.php file automatically. Please do not comment it out!, (*5)

composer require tebros/laravel-email-confirmation

Run the make:auth command if not already done., (*6)

Skip this step if you have already executed the command in the past., (*7)

php artisan make:auth

Make a migration to create the needed table users_confirmation., (*8)

```bashneed to php artisan migrate, (*9)


Edit the `app/Http/Controllers/Auth/RegisterController.php` file. The editing is quite simple. To hook into the default Laravel authentification prozess, you need to change the `RegistersUsers` trait at the top. ```php //comment out the line like this or just override it //use RegistersUsers; use \Tebros\EmailConfirmation\Traits\RegistersUsers; //use this trait instead of the default

Edit the app/Http/Controllers/Auth/LoginController.php file., (*10)

It is required to display correct a message if the account is not confirmed., (*11)

//comment out the line like this or just override it
//use AuthenticatesUsers;

use \Tebros\EmailConfirmation\Traits\AuthenticatesUsers; //use this trait instead of the default

Make sure your config/mail.php file contains these important settings: - MAIL_DRIVER - MAIL_HOST - MAIL_PORT - MAIL_USERNAME, MAIL_PASSWORD - MAIL_FROM_ADDRESS, MAIL_FROM_NAME, (*12)

Moreover, make sure your config/app.php file contains these important settings: - APP_NAME - APP_URL, (*13)

Configuration and Publishing

After the installation you can make use of the confirm route name to link the Resend Confirmation E-Mail site., (*14)

Important! You should edit your auth/login.blade.php view and add this link to request a new confirmation email!, (*15)



If you want to configure the email confirmation, run the following command., (*16)

You can modify the config/emailconfirmation.php file as you wish., (*17)

php artisan vendor:publish --tag=emailconfirmation-config

To change a message or text you can modify the files in the lang/vendor/emailconfirmation directory., (*18)

Run the following command to do this., (*19)

php artisan vendor:publish --tag=emailconfirmation-translation

If you do not want to use the default Laravel views, you can modify the views in the views/vendor/emailconfirmation directory., (*20)

Run the following command to do this., (*21)

php artisan vendor:publish --tag=emailconfirmation-views

Update

You can update the package by running the following command or update all of your dependencies with composer update., (*22)

composer update tebros/laravel-email-confirmation

If you want to update your published files like config/emailconfirmation.php, lang/vendor/emailconfirmation or views/vendor/emailconfirmation, you can use the following commands., (*23)

Attention! These commands will override your published files. So please backup your config, views or lang files if you do not want to lose them!, (*24)

php artisan vendor:publish --tag=emailconfirmation-config --force
php artisan vendor:publish --tag=emailconfirmation-translation --force
php artisan vendor:publish --tag=emailconfirmation-views --force

Uninstallation

You should remove the following two lines in your routes/web.php file., (*25)

// Register routes for email confirmation. The uri is "/confirm"
Tebros\EmailConfirmation\Utils::routes();

Edit the app/Http/Controllers/Auth/RegisterController.php file and the app/Http/Controllers/Auth/LoginController.php file to remove the Laravel hook., (*26)

//remove the comment that the orifinal trait is used
use RegistersUsers;

//remove the whole line or comment it out
//use \Tebros\EmailConfirmation\Traits\RegistersUsers; 
//remove the comment that the orifinal trait is used
use AuthenticatesUsers;

//remove the whole line or comment it out
//use \Tebros\EmailConfirmation\Traits\AuthenticatesUsers; 

Now just type the following command., (*27)

composer remove tebros/laravel-email-confirmation

License

This package is open-sourced software licensed under the MIT license, (*28)

The Versions

30/01 2018

dev-master

9999999-dev https://github.com/Tebros/laravel-email-confirmation

Email confirmation integration for the Laravel framework.

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

laravel email confirmation

30/01 2018

1.2.0

1.2.0.0 https://github.com/Tebros/laravel-email-confirmation

Email confirmation integration for the Laravel framework.

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

laravel email confirmation

22/01 2018

1.1.2

1.1.2.0 https://github.com/Tebros/laravel-email-confirmation

Email confirmation integration for the Laravel framework.

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

laravel email confirmation

22/01 2018

1.1.1

1.1.1.0 https://github.com/Tebros/laravel-email-confirmation

Email confirmation integration for the Laravel framework.

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

laravel email confirmation

22/01 2018

1.1.0

1.1.0.0 https://github.com/Tebros/laravel-email-confirmation

Email confirmation integration for the Laravel framework.

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

laravel email confirmation

22/01 2018

1.0.0

1.0.0.0 https://github.com/Tebros/laravel-email-confirmation

Email confirmation integration for the Laravel framework.

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

laravel email confirmation