PHPackages                             codicastudio/verify-new-email - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. codicastudio/verify-new-email

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

codicastudio/verify-new-email
=============================

A random Codica Studio package.

1.0.0(5y ago)03MITPHPPHP ^7.4 || ^8.0CI failing

Since Sep 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/codicastudio/verify-new-email)[ Packagist](https://packagist.org/packages/codicastudio/verify-new-email)[ Docs](https://github.com/codicastudio/verify-new-email)[ RSS](/packages/codicastudio-verify-new-email/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Laravel Verify New Email
========================

[](#laravel-verify-new-email)

Laravel supports verifying email addresses out of the box. This package adds support for verifying *new* email addresses. When a user updates its email address, it won't replace the old one until the new one is verified. Super easy to set up, still fully customizable. If you want it can be used as a drop-in replacement for the built-in Email Verification features as this package supports unauthenticated verification and auto-login. Support for Laravel 6.0 and higher and requires PHP 7.2 or higher.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require protonemedia/laravel-verify-new-email
```

Configuration
-------------

[](#configuration)

Publish the database migration, config file and email view:

```
php artisan vendor:publish --provider="ProtoneMedia\LaravelVerifyNewEmail\ServiceProvider"
```

You can set the redirect path in the `verify-new-email.php` config file. The user will be redirected to this path after verification.

The expire time of the verification URLs can be changed by updating the `auth.verification.expire` setting and defaults to 60 minutes.

Usage
-----

[](#usage)

Add the `MustVerifyNewEmail` trait to your `User` model and make sure it implements the framework's `MustVerifyEmail` interface as well.

```
