LaravelPackages.net
Acme Inc.
Toggle sidebar
marvinwank/laravel-view-debug

Debug Laravel views

4
0
v0.2.0
About marvinwank/laravel-view-debug

marvinwank/laravel-view-debug is a Laravel package for debug laravel views. It currently has 0 GitHub stars and 4 downloads on Packagist (latest version v0.2.0). Install it with composer require marvinwank/laravel-view-debug. Discover more Laravel packages by marvinwank or browse all Laravel packages to compare alternatives.

Last updated

Laravel View Debug

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.

Comments