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 3w ago

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 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

2302d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/139632?v=4)[Jess Stopa](/maintainers/jezzdk)[@jezzdk](https://github.com/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.9k102.4M1.4k](/packages/spatie-laravel-permission)[laravel/pulse

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

1.7k15.1M130](/packages/laravel-pulse)[nuwave/lighthouse

A framework for serving GraphQL from Laravel

3.5k11.8M117](/packages/nuwave-lighthouse)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M130](/packages/roots-acorn)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

84611.1M63](/packages/php-open-source-saver-jwt-auth)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)

PHPackages © 2026

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