pixelfear/laravel-view-debug
Debug Laravel views
Maintainers
Fund package maintenance!
v3.0.0
2025-02-25 15:51 UTC
Requires
- laravel/framework: ^11.0 || ^12.0
Requires (Dev)
- orchestra/testbench: ^9.0 || ^10.0
Suggests
None
Provides
None
Conflicts
Replaces
None
MIT bd02799f0ef5e421f505c49b3f669e943003d11d
This package is auto-updated.
Last update: 2026-06-08 15:07:13 UTC
README
Adds HTML comments to the start and end of each view, so you can more easily keep track of what's being used.
Inspired by this feature request.
Example
You may have a Blade file like this:
My view file
@include('sub-view')
More stuff
It will be rendered like this:
<!-- Start view: /path/to/views/my-view.blade.php -->
My view file
<!-- Start view: /path/to/views/sub-view.blade.php -->
Sub view
<!-- End view: /path/to/views/sub-view.blade.php -->
More stuff
<!-- End view: /path/to/views/my-view.blade.php -->
Of course, since they are HTML comments, it will look no different unless you view the source.
Installation
You can install the package via composer:
composer require pixelfear/laravel-view-debug --dev
Usage
This package will be enabled while your app is in debug mode.
Livewire
This package will conflict with Livewire because it would result in components having more than a single root node.
