PHPackages                             jezzdk/laravel-route-guard - 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. jezzdk/laravel-route-guard

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

jezzdk/laravel-route-guard
==========================

1.1(6y ago)0844BSD-2-ClausePHPPHP &gt;=5.6.0CI failing

Since Dec 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jezzdk/laravel-route-guard)[ Packagist](https://packagist.org/packages/jezzdk/laravel-route-guard)[ RSS](/packages/jezzdk-laravel-route-guard/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (5)Used By (0)

Laravel Route Guard
===================

[](#laravel-route-guard)

This package adds the option to specifiy an auth guard on route level.

What this means is that you can actually use the same auth routes but with different guards.

This is particularly useful when using a package like [stancl/tenancy](https://github.com/stancl/tenancy), where you have central routes and tenant routes (and also the reason why this package came to be).

Usage
-----

[](#usage)

You simple specify the guard in a `guard` route option.

Example from my own setup:

```
Route::group(['guard' => 'tenant'], function () {
    Route::group(['prefix' => 'auth'], function () {
        Route::post('login', 'AuthController@login');

        Route::group(['middleware' => 'auth:tenant'], function () {
            Route::post('logout', 'AuthController@logout');
            Route::post('refresh', 'AuthController@refresh');
        });
    });
});

```

If no `guard` is specified, it will default to whatever is the default guard (usually the same as `config('auth.defaults.guard')`).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Total

3

Last Release

2251d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d0a6d2e4c81a362cc84db1d7394aa7d32c9094b8876a4bbb8dafc1b71a1a90f?d=identicon)[jezzdk](/maintainers/jezzdk)

---

Top Contributors

[![baernholdt-jf](https://avatars.githubusercontent.com/u/73707365?v=4)](https://github.com/baernholdt-jf "baernholdt-jf (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jezzdk-laravel-route-guard/health.svg)

```
[![Health](https://phpackages.com/badges/jezzdk-laravel-route-guard/health.svg)](https://phpackages.com/packages/jezzdk-laravel-route-guard)
```

###  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)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M53](/packages/php-open-source-saver-jwt-auth)[laragear/two-factor

On-premises 2FA Authentication for out-of-the-box.

339785.3k8](/packages/laragear-two-factor)[codegreencreative/laravel-samlidp

Make your PHP Laravel application an Identification Provider using SAML 2.0. This package allows you to implement your own Identification Provider (idP) using the SAML 2.0 standard to be used with supporting SAML 2.0 Service Providers (SP).

263763.5k1](/packages/codegreencreative-laravel-samlidp)[webfox/laravel-xero-oauth2

A Laravel integration for Xero using the Oauth 2.0 spec

58452.0k2](/packages/webfox-laravel-xero-oauth2)

PHPackages © 2026

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