PHPackages                             andrewboy/laravel-multi-auth - 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. andrewboy/laravel-multi-auth

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

andrewboy/laravel-multi-auth
============================

Laravel 5.1 package for laravel multi auth.

01.0kPHP

Since Aug 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/andrewboy/LaravelMultiAuth)[ Packagist](https://packagist.org/packages/andrewboy/laravel-multi-auth)[ RSS](/packages/andrewboy-laravel-multi-auth/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Multi Auth for Laravel 5.1
==========================

[](#multi-auth-for-laravel-51)

This package can be use with only 5.1 version of laravel. This package extends the **Kbwebs/MultiAuth** package by overriding the default single laravel auth traits. With this package you can easily use the auth mechanism that laravel default offers.

Overwritten traits
------------------

[](#overwritten-traits)

**AuthenticatesAndRegistersUsers**

```
Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers
```

to

```
Andrewboy\LaravelMultiAuth\Traits\AuthenticatesAndRegistersUsers
```

**AuthenticatesUsers**

```
Illuminate\Foundation\Auth\AuthenticatesUsers
```

to

```
Andrewboy\LaravelMultiAuth\Traits\AuthenticatesUsers
```

**RegistersUsers**

```
Illuminate\Foundation\Auth\RegistersUsers
```

to

```
Andrewboy\LaravelMultiAuth\Traits\RegistersUsers
```

**ResetsPasswords**

```
Illuminate\Foundation\Auth\ResetsPasswords
```

to

```
Andrewboy\LaravelMultiAuth\Traits\ResetsPasswords
```

Installation steps
------------------

[](#installation-steps)

1. First setup the [Kbwebs/MultiAuth](https://github.com/Kbwebs/MultiAuth) package
2. In config/app.php set the provider:

    ```
    ...
    'providers' => [
        ...
        Andrewboy\LaravelMultiAuth\LaravelMultiAuthServiceProvider::class,
    ],
    ...
    ```
3. Set the controllers

    **AuthController**

    ```
    use Andrewboy\LaravelMultiAuth\Traits\AuthenticatesAndRegistersUsers;

    class AuthController extends Controller
    {
        use AuthenticatesAndRegistersUsers, ThrottlesLogins;
        protected $entity = 'admin';

        ...
    }
    ```

    **PasswordController**

    ```
    use Andrewboy\LaravelMultiAuth\Traits\ResetsPasswords;

    class PasswordController extends Controller
    {
        use ResetsPasswords;

        protected $entity = 'admin';

        ...
    }
    ```

    Note: if you have only one entity, then you don't have to use the protected $entity property.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/1fffd03f6394ab7501672bb08668811da515facc3e160cfd1d433fbbd53a352c?d=identicon)[andrewboy](/maintainers/andrewboy)

### Embed Badge

![Health badge](/badges/andrewboy-laravel-multi-auth/health.svg)

```
[![Health](https://phpackages.com/badges/andrewboy-laravel-multi-auth/health.svg)](https://phpackages.com/packages/andrewboy-laravel-multi-auth)
```

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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