PHPackages                             lukasss93/laravel-route-debug - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. lukasss93/laravel-route-debug

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

lukasss93/laravel-route-debug
=============================

Print the route name and action in the response headers.

3.1.0(2mo ago)735.5k↓12.7%MITPHPPHP ^8.2CI passing

Since Feb 1Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/Lukasss93/laravel-route-debug)[ Packagist](https://packagist.org/packages/lukasss93/laravel-route-debug)[ GitHub Sponsors](https://github.com/Lukasss93)[ RSS](/packages/lukasss93-laravel-route-debug/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (10)Versions (7)Used By (0)

[![banner](https://camo.githubusercontent.com/5ea95185487e115cc07c9abc8c1e3be013fce673936945e005eb7fb7f009da9c/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c253230526f75746525323044656275672e706e673f7468656d653d6461726b267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6c756b6173737339332532466c61726176656c2d726f7574652d64656275672b2d2d646576267061747465726e3d627269636b57616c6c267374796c653d7374796c655f31266465736372697074696f6e3d412b73696d706c652b7061636b6167652b746861742b7072696e74732b7468652b63757272656e742b726f7574652b6e616d652b616e642b616374696f6e2b696e2b7468652b526573706f6e73652b486561646572732e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d666173742d666f7277617264)](https://camo.githubusercontent.com/5ea95185487e115cc07c9abc8c1e3be013fce673936945e005eb7fb7f009da9c/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c253230526f75746525323044656275672e706e673f7468656d653d6461726b267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6c756b6173737339332532466c61726176656c2d726f7574652d64656275672b2d2d646576267061747465726e3d627269636b57616c6c267374796c653d7374796c655f31266465736372697074696f6e3d412b73696d706c652b7061636b6167652b746861742b7072696e74732b7468652b63757272656e742b726f7574652b6e616d652b616e642b616374696f6e2b696e2b7468652b526573706f6e73652b486561646572732e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d666173742d666f7277617264)

Laravel Route Debug
===================

[](#laravel-route-debug)

[![Packagist](https://camo.githubusercontent.com/bf51746b29465328700246ef52f52727f2778e1db3f07c21b31302986a5226b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c756b6173737339332f6c61726176656c2d726f7574652d6465627567)](https://camo.githubusercontent.com/bf51746b29465328700246ef52f52727f2778e1db3f07c21b31302986a5226b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c756b6173737339332f6c61726176656c2d726f7574652d6465627567)[![License](https://camo.githubusercontent.com/b30ec36c5dadf89fefed097f53094ceac775dd045dc60acbe5d8b3514c1cf192/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c756b6173737339332f6c61726176656c2d726f7574652d6465627567)](https://camo.githubusercontent.com/b30ec36c5dadf89fefed097f53094ceac775dd045dc60acbe5d8b3514c1cf192/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c756b6173737339332f6c61726176656c2d726f7574652d6465627567)[![PHP](https://camo.githubusercontent.com/31e1f9f35a661745548b44acfb249770773b02a3d01c49f3360f7734977733e9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6c756b6173737339332f6c61726176656c2d726f7574652d64656275672f7068703f6c6162656c3d504850266c6f676f3d706870)](https://camo.githubusercontent.com/31e1f9f35a661745548b44acfb249770773b02a3d01c49f3360f7734977733e9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6c756b6173737339332f6c61726176656c2d726f7574652d64656275672f7068703f6c6162656c3d504850266c6f676f3d706870)[![Laravel](https://camo.githubusercontent.com/10d54ac8208f3c07bb4312fa70fe65583ee9573728b43833c19982068561d9be/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6c756b6173737339332f6c61726176656c2d726f7574652d64656275672f696c6c756d696e6174652f737570706f72743f636f6c6f723d6f72616e6765266c6162656c3d4c61726176656c266c6f676f3d6c61726176656c)](https://camo.githubusercontent.com/10d54ac8208f3c07bb4312fa70fe65583ee9573728b43833c19982068561d9be/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6c756b6173737339332f6c61726176656c2d726f7574652d64656275672f696c6c756d696e6174652f737570706f72743f636f6c6f723d6f72616e6765266c6162656c3d4c61726176656c266c6f676f3d6c61726176656c)[![run-tests](https://github.com/Lukasss93/laravel-route-debug/actions/workflows/run-tests.yml/badge.svg)](https://github.com/Lukasss93/laravel-route-debug/actions/workflows/run-tests.yml)

> A simple package that prints the current route name and action in the Response Headers.

🚀 Installation
--------------

[](#-installation)

You can install the package using composer

```
composer require lukasss93/laravel-route-debug --dev
```

Then add the service provider to `config/app.php`.
This step *can be skipped* if package auto-discovery is enabled.

```
'providers' => [
    Lukasss93\Laravel\RouteDebug\RouteDebugServiceProvider::class,
];
```

⚙ Publishing the config file
----------------------------

[](#-publishing-the-config-file)

Publishing the config file is optional:

```
php artisan vendor:publish --provider="Lukasss93\Laravel\RouteDebug\RouteDebugServiceProvider" --tag="route-debug-config"
```

👓 Usage
-------

[](#-usage)

Enable the package turning on the `APP_DEBUG` environment variable or by setting the `enabled` config option to `true`.

Then, when you visit a page, you will see the route debuggers in the response headers.

### Route Debuggers

[](#route-debuggers)

The package will add the following headers to the response:

- `Laravel-Route-Name`: The name of the current route.
- `Laravel-Route-Action`: The action of the current route.
- `Laravel-Route-Can`: The value of the `can` middleware of the current route.
- `Laravel-Route-FormRequest`: The FormRequest class of the current route action.

You can disable any of these headers by commenting out the corresponding line in the `config/route-debug.php` file.

### Custom Route Debugger

[](#custom-route-debugger)

You can create a custom route debugger to add your own headers to the response.

1. Create a new class that implements the `Lukasss93\Laravel\RouteDebug\Contracts\RouteDebugger` interface.
2. Add your custom logic to the `handle` method.
3. Register your custom route debugger in the `config/route-debug.php` file under the `debuggers` key.

### Screenshot

[](#screenshot)

[![preview](https://camo.githubusercontent.com/1a6838fe42a92f61065650b0ef34f04ba8a11034550320053f1b44f6c2513ac2/68747470733a2f2f692e696d6775722e636f6d2f30567a4e614b562e706e67)](https://camo.githubusercontent.com/1a6838fe42a92f61065650b0ef34f04ba8a11034550320053f1b44f6c2513ac2/68747470733a2f2f692e696d6775722e636f6d2f30567a4e614b562e706e67)

⚗️ Testing
----------

[](#️-testing)

```
composer test
```

🔰 Version Support
-----------------

[](#-version-support)

PackageL8.xL9.xL10.xL11.xL12.xL13.x^1.0✅✅✅❌❌❌^2.0❌❌✅✅❌❌^3.0❌❌❌✅✅✅PackagePHP 7.4PHP 8.0PHP 8.1PHP 8.2PHP 8.3PHP 8.4PHP 8.5^1.0✅✅✅✅✅✅✅^2.0❌❌✅✅✅✅✅^3.0❌❌❌✅✅✅✅📃 Changelog
-----------

[](#-changelog)

Please see the [CHANGELOG.md](CHANGELOG.md) for more information on what has changed recently.

🏅 Credits
---------

[](#-credits)

- [Luca Patera](https://github.com/Lukasss93)
- [All Contributors](https://github.com/Lukasss93/laravel-route-debug/contributors)

📖 License
---------

[](#-license)

Please see the [LICENSE.md](LICENSE.md) file for more information.

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance87

Actively maintained with recent releases

Popularity34

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

62d ago

Major Versions

1.0.0 → 2.0.02024-03-02

2.0.1 → 3.0.02025-02-18

PHP version history (3 changes)1.0.0PHP ^7.4|^8.0

2.0.0PHP ^8.1

3.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/ba98a3b5b1a03bc4c37de57b9d2aefbba31c73570e10df5833a50ad4106fc583?d=identicon)[Lukasss93](/maintainers/Lukasss93)

---

Top Contributors

[![Lukasss93](https://avatars.githubusercontent.com/u/4071613?v=4)](https://github.com/Lukasss93 "Lukasss93 (25 commits)")

---

Tags

laraveldebugroutenameaction

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/lukasss93-laravel-route-debug/health.svg)

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

###  Alternatives

[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.2k124.3M624](/packages/barryvdh-laravel-debugbar)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[recca0120/laravel-tracy

A Laravel Package to integrate Nette Tracy Debugger

388283.0k3](/packages/recca0120-laravel-tracy)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1516.7k](/packages/truckersmp-steam-socialite)

PHPackages © 2026

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