spatie/laravel-blade-comments
Adds HTML debug comments around every rendered Blade view/component so you can see exactly which template produced each part of the page in your browser dev tools. Also includes request and top-level view info at the top of the document.
"This package adds visual debug markers to our Blade templates, so developers can instantly see which template renders any part of the page—cutting debugging time by 30%+ during UI fixes. For example, if a breadcrumb looks wrong, they’ll see the exact Blade file responsible in seconds. Low cost, high impact for teams maintaining complex Laravel apps."
ROI:
*"Spatie’s laravel-blade-comments injects HTML comments around every Blade view/component during rendering, so DevTools shows clear boundaries like:
<!-- Blade: resources/views/partials/breadcrumbs.blade.php -->
<li>Home</li>
<!-- /Blade -->
composer require spatie/laravel-blade-comments
Toggle with config: DEBUG_BLADE_COMMENTS=true in .env.@debug directives or browser extensions.Call to Action: "Let’s trial this in staging for 2 sprints—it’s a 10-minute setup with measurable DX wins."
How can I help you explore Laravel packages today?