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 today

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 46% 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

2347d 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

13.0k107.5M1.6k](/packages/spatie-laravel-permission)[nuwave/lighthouse

A framework for serving GraphQL from Laravel

3.5k12.2M128](/packages/nuwave-lighthouse)[laravel/pulse

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

1.7k16.3M154](/packages/laravel-pulse)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9922.4M146](/packages/roots-acorn)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[hasinhayder/tyro-login

Tyro Login - Beautiful, customizable authentication views for Laravel 12 &amp; 13

2508.1k7](/packages/hasinhayder-tyro-login)

PHPackages © 2026

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