PHPackages                             m3rten/laravel-double-opt-in - 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. m3rten/laravel-double-opt-in

ActiveLibrary

m3rten/laravel-double-opt-in
============================

Double-opt-in registration for Laravel 5.1.

v0.1.1(10y ago)22.8k[1 issues](https://github.com/m3rten/laravel-double-opt-in/issues)MITPHP

Since Oct 14Pushed 10y ago1 watchersCompare

[ Source](https://github.com/m3rten/laravel-double-opt-in)[ Packagist](https://packagist.org/packages/m3rten/laravel-double-opt-in)[ RSS](/packages/m3rten-laravel-double-opt-in/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Double-opt-in registration for Laravel 5.1
==========================================

[](#double-opt-in-registration-for-laravel-51)

This package provides double-opt-in registration with user activation to Laravel 5.1.

Features:

- Newly registered users are marked "inactive" and can't login into the application
- An email with a verification link is sent to the user after registration
- A form for requesting a new activation email (in case the first activation email was lost)

Prerequisites
-------------

[](#prerequisites)

The package extends the functionality of the trait Illuminate\\Foundation\\Auth\\AuthenticatesUsers, so if you are using a custom Authentication Controller this package might not work for you. Also the package asumes the User model and user table are used for authentication (may be decoupled in later versions)

Usage
-----

[](#usage)

Install the package via composer:

```
	composer require "m3rten/laravel-double-opt-in"

```

Add the Service Provider to **config/app.php**

```
    'providers' => [
        /* ... */
        M3rten\DoubleOptIn\DoubleOptInServiceProvider::class,
    ],
```

Replace the used traits in **app/Http/Controllers/Auth/AuthController.php** with:

```
    use AuthenticatesUsers, RegisterAndActivateUsers, ThrottlesLogins {
        RegisterAndActivateUsers::getCredentials insteadof AuthenticatesUsers;
    }
```

Publish the packages assets and run the migration.

```
    php artisan vendor:publish
	php artisan migrate

```

If you'd like to alter the provided blade templates you may edit the files in **/resources/views/vendor/doubleoptin**. If you'd like to alter the provided language files you may edit the files in **/resources/lang/vendor/doubleoptin**.

Add the activation an verification routes to your **app/Http/routes.php**

```
    Route::get('/verify/{token}', ['as' => 'activation.verify','uses' => 'Auth\AuthController@verify',]);
    Route::get('/activate', ['as' => 'activation.edit','uses' => 'Auth\AuthController@editActivation',]);
    Route::post('/activate', ['as' => 'activation.update','uses' => 'Auth\AuthController@postActivation',]);
```

Error and success messages are output via Laravels flash messaging using the variables "message" and "message-type". You may include the message output in your login and registration forms:

```
    @include('doubleoptin::partials.message')
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

3863d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8f59dffa22ba4d83ec743899bc85ba93db03b68cabac6956292fa56c47058b07?d=identicon)[m3rten](/maintainers/m3rten)

---

Top Contributors

[![m3rten](https://avatars.githubusercontent.com/u/8625303?v=4)](https://github.com/m3rten "m3rten (4 commits)")

### Embed Badge

![Health badge](/badges/m3rten-laravel-double-opt-in/health.svg)

```
[![Health](https://phpackages.com/badges/m3rten-laravel-double-opt-in/health.svg)](https://phpackages.com/packages/m3rten-laravel-double-opt-in)
```

PHPackages © 2026

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