百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

laravel-tracer

> 后端框架
开源

显示在模板中加载的每个叶片文件的路径

100 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

显示在模板中加载的每个叶片文件的路径

Laravel 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
  • If you're completely new to Laravel and want to play around with views/partials/templates etc

Installation

First install this package via Composer:

bash
$ composer require appstract/laravel-tracer --dev

Publish the config file:

bash
$ 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, 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 section.

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

If you wish to disable Tracer and remove the existing traces, you can simply clear the compiled view files using the php artisan view:clear command.

Testing

bash
$ composer test

Contributing

Contributions are welcome, thanks to y'all :)

About Appstract

Appstract is a small team from The Netherlands. We create (open source) tools for webdevelopment and write about related subjects on Medium. You can follow us on Twitter, buy us a beer or support us on Patreon.

License

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

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHPlaravellaravel-bladelaravel-packagelaravel-tracer

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类后端框架
定价开源

> 相关工具

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架