Download the PHP package jersyfi/laravel-verify-email without Composer
On this page you can find all versions of the php package jersyfi/laravel-verify-email. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jersyfi/laravel-verify-email
More information about jersyfi/laravel-verify-email
Files in jersyfi/laravel-verify-email
Package laravel-verify-email
Short Description A package for email verification in laravel
License MIT
Homepage https://github.com/jersyfi/laravel-localization
Informations about the package laravel-verify-email
E-Mail Verification for Laravel
Simple designed email verification based on the laravel email verification features. Verify Email publishes the scaffolding to your laravel application that can be easily customized based on your own application's needs. The easiest way is to use laravel breeze because it is designed the same way.
It is suggested to use laravel breeze but you don't need to. When you are not using the suggested package please get familiar with laravel email verification before starting here.
Installation
It is also easy to install this package.
Prepare your application
The user model needs to use the trait MustVerifyNewEmail
. Also it is necessary to override the default function sendEmailVerificationNotification
.
In the routes you need to add the following example. You are free to customize your route name but keep in mind to update it in your config or in your auth trait MustVerifyNewEmail
. The redirect route after verification can be changed in config or in the controller VerifyNewEmailController
.
At least you need to migrate the %_create_pending_user_emails.php
migration.
Configuration
The configuration can be made in the config file verify-email
or in the published files. All config values have there used file path.
For the verification url the route.for
is required or go to app/Traits/Auth/MustVerifyNewEmail
and change it in function verificationUrl
. When calling the varification link the route.after
is required to redirect or go to app/Http/Controllers/Auth/VerifyNewEmailController
and change it in function __invoke
.
You can decide if the user's verification status resets on every email change or go to app/Traits/Auth/MustVerifyNewEmail
and change it in function newEmail
.
You can change the active time of the verification link with a number in minutes or go to app/Traits/Auth/MustVerifyNewEmail
and change it in function verificationUrl
.
Usage
When you want to change to user's email you can call the user function syncEmail
.
If you need to get the pending email you can call the user function getPendingEmail
.
In case you need to clear the user's pending email call clearPendingEmail
.
Changelog
Please see CHANGELOG for more information what has changed recently.
Credits
- Jérôme Bastian Winkel
- All Contributors
This package was inspired by the Laravel Verify New Email package by Protone Media.
License
The MIT License (MIT). Please see License File for more information.