PHPackages                             rocont/laravel-blade-debugbar - 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. [Templating &amp; Views](/categories/templating)
4. /
5. rocont/laravel-blade-debugbar

ActiveLibrary[Templating &amp; Views](/categories/templating)

rocont/laravel-blade-debugbar
=============================

Laravel Debugbar tab that shows variables passed to Blade views

v2.0.1(1mo ago)05↓100%MITPHPPHP ^8.0

Since Mar 16Pushed 1mo agoCompare

[ Source](https://github.com/Rocont/laravel-blade-debugbar)[ Packagist](https://packagist.org/packages/rocont/laravel-blade-debugbar)[ RSS](/packages/rocont-laravel-blade-debugbar/feed)WikiDiscussions master Synced 1mo ago

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

Laravel Blade Debugbar
======================

[](#laravel-blade-debugbar)

A [Laravel Debugbar](https://github.com/barryvdh/laravel-debugbar) extension that adds a **Blade Variables** tab showing all variables passed to Blade views.

Features
--------

[](#features)

- Displays all variables passed to each Blade template in a dump()-like format
- Automatically filters out Laravel system variables (`__env`, `app`, `errors`, etc.)
- Converts Eloquent models and collections to arrays for readable output
- Marks or hides shared variables (`View::share()`)
- Optional grouping by view name
- Alphabetical sorting

Requirements
------------

[](#requirements)

- PHP 8.0+
- Laravel 9, 10, 11, or 12
- [barryvdh/laravel-debugbar](https://github.com/barryvdh/laravel-debugbar) 3.7+

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

[](#installation)

```
composer require --dev rocont/laravel-blade-debugbar
```

The service provider is registered automatically via Laravel Package Discovery.

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

[](#configuration)

Publish the config file:

```
php artisan vendor:publish --tag=blade-debugbar-config
```

This creates `config/blade-debugbar.php`:

```
return [

    // Group variables by Blade view name (e.g. "welcome → $title")
    'group_by_view' => false,

    // Additional variables to exclude (system variables are always excluded)
    'excluded_variables' => [],

    // How to handle View::share() variables: "mark", "hide", or "show"
    'shared_mode' => 'mark',

];
```

### Options

[](#options)

OptionValuesDefaultDescription`group_by_view``true` / `false``false`Group variables by Blade view name`excluded_variables``array``[]`Additional variable names to exclude`shared_mode``mark` / `hide` / `show``mark`How to display shared variables#### Shared mode

[](#shared-mode)

- **`mark`** — shared variables are shown with a `[shared]` prefix, e.g. `[shared] $currentUser`
- **`hide`** — shared variables are excluded completely
- **`show`** — shared variables are shown without any distinction

Usage
-----

[](#usage)

Once installed, open any page in your Laravel app. The Debugbar will show a new **Blade Variables** tab with all variables passed to each rendered Blade template.

### Example output

[](#example-output)

Flat mode (`group_by_view: false`):

```
$posts          → array (3) [...]
$title          → "Blog"
[shared] $user  → array ["id" => 1, "name" => "John"]

```

Grouped mode (`group_by_view: true`):

```
blog.index → $posts    → array (3) [...]
blog.index → $title    → "Blog"
layouts.app → [shared] $user → array ["id" => 1, "name" => "John"]

```

Testing
-------

[](#testing)

```
composer test
```

Or directly:

```
vendor/bin/phpunit
```

License
-------

[](#license)

MIT

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance95

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

Total

5

Last Release

54d ago

Major Versions

v1.0.0 → v2.0.02026-03-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/40985d5041e17656df8a2b7722ad54b84fadef265fd03735787af5ab19f97585?d=identicon)[margas102](/maintainers/margas102)

---

Top Contributors

[![margas102](https://avatars.githubusercontent.com/u/6378445?v=4)](https://github.com/margas102 "margas102 (3 commits)")

---

Tags

laraveldebugdebugbarbladevariables

### Embed Badge

![Health badge](/badges/rocont-laravel-blade-debugbar/health.svg)

```
[![Health](https://phpackages.com/badges/rocont-laravel-blade-debugbar/health.svg)](https://phpackages.com/packages/rocont-laravel-blade-debugbar)
```

###  Alternatives

[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[spatie/laravel-blade-comments

Add debug comments to your rendered output

177325.5k](/packages/spatie-laravel-blade-comments)[radic/blade-extensions

Laravel package providing additional Blade extensions: foreach (with $loop data like twig), break, continue, set,array (multiline), etc

271321.7k5](/packages/radic-blade-extensions)[trupedia/laravel-blade-haml

Wraps MtHaml for ease use in Laravel 5 with Blade syntax style

163.8k](/packages/trupedia-laravel-blade-haml)

PHPackages © 2026

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