Code Monkey home page Code Monkey logo

laravel-tracer's Introduction

Tracer

Tracer shows the paths of all the blade files that are loaded into your templates. This could be very convenient for a number of reasons; If you're working on a large project with alot of views/partials. New to a project and want to get a quick overview of the structure of pages. Or if you're completely new to Laravel and want to play around with views/partials/templates etc.

Screenshot

Installation

composer require appstract/laravel-tracer --dev

First do the composer install then add the following class to your config/app.php service providers list.

Appstract\Tracer\TracerServiceProvider::class,

Publish the config and tracer.js files

php artisan vendor:publish --provider="Appstract\Tracer\TracerServiceProvider"

A tracer.php file will be created in your app/config directory.

Basic Usage

In app/config tracer.php file, if trace is set to true you see the paths of all the blade files that are loaded into your templates. To remove the paths simply set trace to false. If your views are located at another directory you can set the correct path here.

Toggle traces

A tracer.js file will be created in your public/js directory. This gets injected at the end of your app <head> section.

Use the keybord shortcut ctrl+z inside your app to toggle the traces.

Testing

$ composer test

Contributing

Contributions are welcome, thanks to y'all :)

About Appstract

Appstract is a small team from The Netherlands. <3 Laravel, Vue and other awesome tools.

Buy Us A Beer

Would be awesome if you would buy us a beer! Or a lot of beer :)

License

The MIT License (MIT). Please see License File for more information.

laravel-tracer's People

Contributors

303k avatar gizburdt avatar ovanschie avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.