PHPackages                             dayed/auth2 - 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. dayed/auth2

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

dayed/auth2
===========

Laravel 4 - Multi Auth With Password Reminder

v1(11y ago)0156MITPHPPHP &gt;=5.3.0

Since Jul 1Pushed 11y agoCompare

[ Source](https://github.com/dayed/auth2)[ Packagist](https://packagist.org/packages/dayed/auth2)[ RSS](/packages/dayed-auth2/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

\##Laravel 4 Multi Auth With Password Reminder

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

[](#installation)

Open your composer.json file, and add the new required package.

```
"pingpong/auth2": "dev-master"

```

Next, open a terminal and run.

```
composer update

```

After the composer updated. Add new service provider in app/config/app.php.

```
'Pingpong\Auth2\Auth2ServiceProvider'

```

Open your terminal and run:

```
php artisan config:publish pingpong/auth2

```

Finish.

Configuration File
------------------

[](#configuration-file)

```
  return array(

  	// example
  	'admin'	=>	array(
  		'driver' 	=> 'eloquent',
  		'model' 	=> 'Admin',
  		'table' 	=> 'admins',
  		'view' 		=> 'emails.auth.reminder'
  	),

  );
```

Example
-------

[](#example)

#### Auth

[](#auth)

```
Auth2::admin()->attempt($credentials, $remember);

if(Auth2::admin()->check())
{
  // code
}

Auth2::admin()->get(); //it's same with Auth::user() , for get credentials

Auth2::admin()->logout();
```

#### Password Reminder

[](#password-reminder)

Password Remind

```
  /**
   * Handle a POST request to remind a user of their password.
   *
   * @return Response
   */
  public function postRemind()
  {
  	$response = Password2::admin()->remind(Input::only('email'), function($message)
  	{
  	    $message->subject('Password Reminder');
  	});

  	switch ($response)
  	{
  		case 'reminders.user':
  			return Redirect::back()->with('error', Lang::get($response));

  		case 'reminders.sent':
  			return Redirect::back()->with('status', Lang::get($response));
  	}
  }
```

Password Reset

```

  /**
   * Handle a POST request to reset a user's password.
   *
   * @return Response
   */
  public function postReset()
  {
  		$credentials = Input::only(
  		'email', 'password', 'password_confirmation', 'token'
  	);

  	$response = Password2::admin()->reset($credentials, function($user, $password)
  	{
  		$user->password = Hash::make($password);

  		$user->save();
  	});

  	switch ($response)
  	{
  		case 'reminders.password':
  		case 'reminders.token':
  		case 'reminders.user':
  			return Redirect::back()->with('error', Lang::get($response));

  		case 'reminders.reset':
  			return Redirect::to('admin');
  	}
  }
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% 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

Unknown

Total

1

Last Release

4339d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0420f23af3ca64d06ed2122cdab003eefe90af57f2f9e56892376f1b9ae06f8c?d=identicon)[Matt Ma](/maintainers/Matt%20Ma)

---

Top Contributors

[![gravitano](https://avatars.githubusercontent.com/u/5087538?v=4)](https://github.com/gravitano "gravitano (11 commits)")[![dulumao](https://avatars.githubusercontent.com/u/2610297?v=4)](https://github.com/dulumao "dulumao (1 commits)")

---

Tags

laravelauthpingpongmultiauthauth2

### Embed Badge

![Health badge](/badges/dayed-auth2/health.svg)

```
[![Health](https://phpackages.com/badges/dayed-auth2/health.svg)](https://phpackages.com/packages/dayed-auth2)
```

###  Alternatives

[sarav/laravel-multiauth

A Simple Laravel Package for handling multiple authentication

5030.7k](/packages/sarav-laravel-multiauth)[painlesscode/breeze-multiauth

Multi authentication system with laravel breeze

477.2k](/packages/painlesscode-breeze-multiauth)[orchestra/auth

Auth Component for Orchestra Platform

24108.5k3](/packages/orchestra-auth)[codebot/entrust

This package provides a flexible way to add Role-based Permissions to Laravel

1596.6k](/packages/codebot-entrust)[ingria/laravel-x509-auth

Laravel 5 Client Certificate auth middleware

375.6k](/packages/ingria-laravel-x509-auth)[setiawanhu/sanctum-auth

Laravel package for generating user authentication feature using Laravel Sanctum

132.8k](/packages/setiawanhu-sanctum-auth)

PHPackages © 2026

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