Skip to content

Adds HTML comments to the start and end of each Laravel view.

License

Notifications You must be signed in to change notification settings

pixelfear/laravel-view-debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Adds HTML comments to the start and end of each Laravel view.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages