Download the PHP package tebros/laravel-email-confirmation without Composer
On this page you can find all versions of the php package tebros/laravel-email-confirmation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tebros/laravel-email-confirmation
More information about tebros/laravel-email-confirmation
Files in tebros/laravel-email-confirmation
Package laravel-email-confirmation
Short Description Email confirmation integration for the Laravel framework.
License MIT
Homepage https://github.com/Tebros/laravel-email-confirmation
Informations about the package laravel-email-confirmation
Laravel E-Mail Confirmation
This package integrates an email confirmation into the default laravel authentification.
It is has been developed and tested for Laravel 5.5 but it should also work with other versions of Laravel.
Installation
Make use of composer to require this package.
The installation appends a function call in the routes/web.php
file automatically.
Please do not comment it out!
Run the make:auth
command if not already done.
Skip this step if you have already executed the command in the past.
Make a migration to create the needed table users_confirmation
.
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.
Edit the app/Http/Controllers/Auth/LoginController.php
file.
It is required to display correct a message if the account is not confirmed.
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
Moreover, make sure your config/app.php
file contains these important settings:
- APP_NAME
- APP_URL
Configuration and Publishing
After the installation you can make use of the confirm
route name to link the Resend Confirmation E-Mail
site.
Important! You should edit your auth/login.blade.php
view and add this link to request a new confirmation email!
If you want to configure the email confirmation, run the following command.
You can modify the config/emailconfirmation.php
file as you wish.
To change a message or text you can modify the files in the lang/vendor/emailconfirmation
directory.
Run the following command to do this.
If you do not want to use the default Laravel views, you can modify the views in the views/vendor/emailconfirmation
directory.
Run the following command to do this.
Update
You can update the package by running the following command or update all of your dependencies with composer update
.
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.
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!
Uninstallation
You should remove the following two lines in your routes/web.php
file.
Edit the app/Http/Controllers/Auth/RegisterController.php
file and
the app/Http/Controllers/Auth/LoginController.php
file to remove the Laravel hook.
Now just type the following command.
License
This package is open-sourced software licensed under the MIT license