PHPackages                             iamproperty/laravel-multiauth - 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. iamproperty/laravel-multiauth

ActiveLibrary

iamproperty/laravel-multiauth
=============================

Helpers for managing multiple authentication guards in Laravel

1.1.1(6y ago)0467proprietaryPHP

Since Mar 6Pushed 6y agoCompare

[ Source](https://github.com/iamproperty/laravel-multiauth)[ Packagist](https://packagist.org/packages/iamproperty/laravel-multiauth)[ RSS](/packages/iamproperty-laravel-multiauth/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

Laravel Multi-Auth
==================

[](#laravel-multi-auth)

This will help automatically assigning the correct guard so that when you call `Request::user()` or `Auth::user()` there is no need to specify the guard.

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

[](#installation)

Install the package using Composer.

```
composer install iamproperty/laravel-multiauth

```

Register the guard map:

```
class AuthServiceProvider
{
    public function boot()
    {
        // ...

        SetGuardHint::guardMap([
            'agent' => \MoveButler\Agent::class,
        ]);
    }
}

```

Register the login listener:

```
class EventServiceProvider
{
    protected $listen = [
        // ...
        \Illuminate\Auth\Events\Login::class => [
            \IAMProperty\MultiAuth\SetGuardHint::class,
        ],
        // ...

```

Register the middleware:

```
class Kernel extends HttpKernel
{
    protected $middlewareGroups = [
        'web' => [
            \Illuminate\Session\Middleware\StartSession::class,
            // Add after the session is started
            \IAMProperty\MultiAuth\SetGuardFromHint::class,
            // ...

```

Configuration
-------------

[](#configuration)

There is no need to configure anything manually, but if you want to you can publish the config file.

```
php artisan vendor:publish --provider="IAMProperty\MultiAuth\MultiAuthServiceProvider"

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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 ~91 days

Total

5

Last Release

2259d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/39ea2c0cdf730d42cc270df563d242ff6fdd01b6b1899e72d3d9b0116f540036?d=identicon)[iamproperty](/maintainers/iamproperty)

---

Top Contributors

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

---

Tags

private-treaty-team

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/iamproperty-laravel-multiauth/health.svg)

```
[![Health](https://phpackages.com/badges/iamproperty-laravel-multiauth/health.svg)](https://phpackages.com/packages/iamproperty-laravel-multiauth)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k89.8M1.0k](/packages/spatie-laravel-permission)[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[silber/bouncer

Eloquent roles and abilities.

3.6k4.4M25](/packages/silber-bouncer)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M53](/packages/php-open-source-saver-jwt-auth)

PHPackages © 2026

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