PHPackages                             lactobasilus/email-verification - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. lactobasilus/email-verification

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

lactobasilus/email-verification
===============================

forked form beyondcode.

2.0.0(5y ago)06MITPHPPHP ^7.1

Since Apr 30Pushed 5y agoCompare

[ Source](https://github.com/lactobasilusprotectus/laravel-confirm-email)[ Packagist](https://packagist.org/packages/lactobasilus/email-verification)[ Docs](https://github.com/beyondcode/laravel-confirm-email)[ RSS](/packages/lactobasilus-email-verification/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (7)Versions (10)Used By (0)

Laravel Email Confirmation
==========================

[](#laravel-email-confirmation)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e14a60002e6875872f3412a7c11d19bf577017d34affa7fc6282b4236ce2b4f7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6265796f6e64636f64652f6c61726176656c2d636f6e6669726d2d656d61696c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/beyondcode/laravel-confirm-email)[![Build Status](https://camo.githubusercontent.com/8ee4e896c19b2cffd46b7b0febdaf1a71ecad9d5155999f749f8b78d050f077d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6265796f6e64636f64652f6c61726176656c2d636f6e6669726d2d656d61696c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/beyondcode/laravel-confirm-email)[![Quality Score](https://camo.githubusercontent.com/46fc90552d95d8daab068c7118439e381ef664b87a2df20c647e8f24fd2a7266/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6265796f6e64636f64652f6c61726176656c2d636f6e6669726d2d656d61696c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/beyondcode/laravel-confirm-email)[![Total Downloads](https://camo.githubusercontent.com/1463bd66a82d4ff863f3e3924f67217a19ccf97c72e0f712ffb9071796b7d9fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6265796f6e64636f64652f6c61726176656c2d636f6e6669726d2d656d61696c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/beyondcode/laravel-confirm-email)

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

[](#installation)

You can install the package via composer:

```
composer require beyondcode/laravel-confirm-email
```

Usage
-----

[](#usage)

This package adds a `confirmed_at` and `confirmation_code` field to your users table. Publish the migration and the configuration file using

```
php artisan vendor:publish --provider="BeyondCode\EmailConfirmation\EmailConfirmationServiceProvider"
```

And run the migrations:

```
php artisan migrate
```

### Configuring the login, register and forgot password controllers

[](#configuring-the-login-register-and-forgot-password-controllers)

In order to make use of the email verification, replace the `AuthenticatesUsers`, `RegistersUsers` and the `SendsPasswordResetEmails` traits that come with Laravel, with the ones provided by this package.

These traits can be found in these three files:

- `App\Http\Controllers\Auth\LoginController`
- `App\Http\Controllers\Auth\RegisterController`
- `App\Http\Controllers\Auth\ForgotPasswordController`

### Add the confirmation and resend routes

[](#add-the-confirmation-and-resend-routes)

Add the following two routes to your `routes/web.php` file:

```
Route::name('auth.resend_confirmation')->get('/register/confirm/resend', 'Auth\RegisterController@resendConfirmation');
Route::name('auth.confirm')->get('/register/confirm/{confirmation_code}', 'Auth\RegisterController@confirm');
```

### Show confirmation messages

[](#show-confirmation-messages)

This packages adds some flash messages that contain error/information messages for your users. To show them to your users, add this to your `login.blade.php`:

```
@if (session('confirmation'))

        {!! session('confirmation') !!}

@endif
```

and this to both your `login.blade.php` and `email.blade.php`

```
@if ($errors->has('confirmation') > 0 )

        {!! $errors->first('confirmation') !!}

@endif
```

### Customization

[](#customization)

This package comes with a language file, that allows you to modify the error / confirmation messages that your user might see. In addition to that, you can change the notification class that will be used to send the confirmation code completely, by changing it in the `config/confirmation.php` file.

### Change redirect routes

[](#change-redirect-routes)

You can change all possible redirect routes by including these values either as properties in your registration controller, or as methods returning the route/URL string:

- `redirectConfirmationTo`
- `redirectAfterRegistrationTo`
- `redirectAfterResendConfirmationTo`

They all default to `route('login')`.

### The Confirmed Event

[](#the-confirmed-event)

On successful email confirmation, this package dispatches a `Confirmed` event, in order for you to conveniently handle any custom logic, such as sending a welcome email or automatically logging the user in.

Simply add the `Confirmed` event, and your listeners, to the `EventServiceProvider` in your application:

```
    /**
     * The event listener mappings for the application.
     *
     * @var array
     */
    protected $listen = [
        'BeyondCode\EmailConfirmation\Events\Confirmed' => [
            'App\Listeners\YourOnConfirmedListener'
        ]
    ];
```

For more information about registering events and listeners, please refer to the [Laravel docs](https://laravel.com/docs/events#registering-events-and-listeners).

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Marcel Pociot](https://github.com/mpociot)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 60% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~99 days

Recently: every ~174 days

Total

9

Last Release

2137d ago

Major Versions

1.6.1 → 2.0.02020-07-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/aef5cf052c4548d1bfff2053bbf509fb3dcfb678a6ff34ab187119860add2962?d=identicon)[lactobasilusprotectus](/maintainers/lactobasilusprotectus)

---

Top Contributors

[![mpociot](https://avatars.githubusercontent.com/u/804684?v=4)](https://github.com/mpociot "mpociot (24 commits)")[![rickwest](https://avatars.githubusercontent.com/u/24735291?v=4)](https://github.com/rickwest "rickwest (9 commits)")[![lactobasilusprotectus](https://avatars.githubusercontent.com/u/45174173?v=4)](https://github.com/lactobasilusprotectus "lactobasilusprotectus (2 commits)")[![kslr](https://avatars.githubusercontent.com/u/5516323?v=4)](https://github.com/kslr "kslr (1 commits)")[![BrandonSurowiec](https://avatars.githubusercontent.com/u/5625680?v=4)](https://github.com/BrandonSurowiec "BrandonSurowiec (1 commits)")[![svenluijten](https://avatars.githubusercontent.com/u/11269635?v=4)](https://github.com/svenluijten "svenluijten (1 commits)")[![chapeupreto](https://avatars.githubusercontent.com/u/834048?v=4)](https://github.com/chapeupreto "chapeupreto (1 commits)")[![colinmackinlay](https://avatars.githubusercontent.com/u/7833362?v=4)](https://github.com/colinmackinlay "colinmackinlay (1 commits)")

---

Tags

beyondcodelaravel-confirm-email

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lactobasilus-email-verification/health.svg)

```
[![Health](https://phpackages.com/badges/lactobasilus-email-verification/health.svg)](https://phpackages.com/packages/lactobasilus-email-verification)
```

###  Alternatives

[beyondcode/laravel-confirm-email

Add email verification to your Laravel projects.

55255.8k](/packages/beyondcode-laravel-confirm-email)[laragear/two-factor

On-premises 2FA Authentication for out-of-the-box.

339785.3k8](/packages/laragear-two-factor)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[ikechukwukalu/requirepin

A laravel package for pin confirmation and validation before processing requests to a specified route

24910.5k1](/packages/ikechukwukalu-requirepin)[scaler-tech/laravel-saml2

SAML2 Service Provider integration for Laravel applications, based on OneLogin toolkit

2737.5k](/packages/scaler-tech-laravel-saml2)[alajusticia/laravel-logins

Session management in Laravel apps, user notifications on new access, support for multiple separate remember tokens, IP geolocation, User-Agent parser

2011.0k](/packages/alajusticia-laravel-logins)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
