PHPackages                             agelxnash/l4-confirm-action - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. agelxnash/l4-confirm-action

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

agelxnash/l4-confirm-action
===========================

Laravel 4 confirm user action

146PHP

Since May 5Pushed 12y ago2 watchersCompare

[ Source](https://github.com/AgelxNash/l4-confirm-action)[ Packagist](https://packagist.org/packages/agelxnash/l4-confirm-action)[ RSS](/packages/agelxnash-l4-confirm-action/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#installation)

Add l4-confirm-action to you composer.json file:

```
"require": {
	"agelxnash/l4-confirm-action": "dev-master"
}

```

Now, run a composer update on the command line from the root of your project:

```
composer update

```

### Registering the Package

[](#registering-the-package)

Add the L4ConfirmAction Service Provider to your config in `app/config/app.php`:

```
'providers' => array(
	'AgelxNash\L4ConfirmAction\ConfirmServiceProvider'
),
```

If you use a [Package Installer](https://github.com/rtablada/package-installer), you can run `php artisan package:install agelxnash/l4-confirm-action`

### Publish the config

[](#publish-the-config)

Run this on the command line from the root of your project: `php artisan config:publish agelxnash/l4-confirm-action` This will publish L4ConfirmAction's config to `app/config/packages/agelxnash/l4-confim-action/`

You may also want to change the `'classname'` value if you want change action logic.

### Migration

[](#migration)

Now migrate the database tables for L4ConfirmAction. Run these on the command line from the root of your project: `php artisan migrate --package="agelxnash/l4-confirm-action"`

*You must be have **InnoDB table users with unsigned id field***

Usage
-----

[](#usage)

Sending confirmation email action to replace:

```
$userObj = Auth::user();
$newMail = 'test@example.com';

$newHash = ConfirmUserAction::createHash($userObj->id, 'newMail', $newMail);
\Mail::send('emails.newMail', array(
	'hash' => $newHash
    'userObj' => $userObj->id
), function($message) use ($obj, $newMail){
	$message->from(Config::get('mail.from.address'))
		->to($newMail)
        ->subject('Confirmation email change');
});

\Mail::send('emails.oldMail', array(
	'hash' => CChop\Helpers\User::confirum($userObj->id, 'oldMail', $userObj->email),
    'userObj' => $userObj,
    'newMail' => $newMail
), function($message) use ($userObj){
	$message->from(Config::get('mail.from.address'))
		->to($userObj->email)
        ->subject('Notice of the request for a change of your email');
    }
);
```

**emails.newMail** blade

```
Change e-mail: {{ URL::route('confirum', compact('hash')) }}
```

**emails.oldMail** blade

```
Cancels the request to change email: {{ URL::route('confirum', compact('hash')) }}
To confirm the change, open a link from a letter sent by mail: {{ $newMail }}
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/cd6eeb152aa8a6a81b05883f09f583f4fafbc50935495d79a2d8a01e0e5f9aa6?d=identicon)[Agel Nash](/maintainers/Agel%20Nash)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/agelxnash-l4-confirm-action/health.svg)

```
[![Health](https://phpackages.com/badges/agelxnash-l4-confirm-action/health.svg)](https://phpackages.com/packages/agelxnash-l4-confirm-action)
```

###  Alternatives

[soup/paginator

Paginator is a simple class that allows you to create pagination. It doesn't require any database connection. It is compatible with Twitter's Bootstrap Framework, by using the CSS class pagination that is also attached.

351.5k](/packages/soup-paginator)[components/jquery-htmlclean

HTML Clean plug-in for jQuery

183.1k1](/packages/components-jquery-htmlclean)

PHPackages © 2026

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