承接 recca0120/laravel-tracy 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

recca0120/laravel-tracy

最新稳定版本:v1.16.0

Composer 安装命令:

composer require recca0120/laravel-tracy

包简介

A Laravel Package to integrate Nette Tracy Debugger

README 文档

README

Donate

Nette Tracy for Laravel 5

Better Laravel Exception Handler

StyleCI Build Status Total Downloads Latest Stable Version Latest Unstable Version License Monthly Downloads Daily Downloads Scrutinizer Code Quality Code Coverage

Laravel Tracy

Features

  • Visualization of errors and exceptions
  • Debugger Bar (ajax support @v1.5.6)
  • Exception stack trace contains values of all method arguments.

Online Demo

Demo

Installing

To get the latest version of Laravel Exceptions, simply require the project using Composer:

composer require recca0120/laravel-tracy --dev

Instead, you may of course manually update your require block and run composer update if you so choose:

{ "require-dev": { "recca0120/laravel-tracy": "^1.8.14" } }

Include the service provider within config/app.php. The service povider is needed for the generator artisan command.

'providers' => [ ... Recca0120\LaravelTracy\LaravelTracyServiceProvider::class, ... ];

publish

php artisan vendor:publish --provider="Recca0120\LaravelTracy\LaravelTracyServiceProvider"

if you see Route [tracy.bar] not defined. pleace run artisan route:clear once

artisan route:clear

Config

return [ 'enabled' => env('APP_DEBUG') === true, 'showBar' => env('APP_ENV') !== 'production', 'accepts' => [ 'text/html', ], // appendTo: body | html 'appendTo' => 'body', 'editor' => 'subl://open?url=file://%file&line=%line', 'maxDepth' => 4, 'maxLength' => 1000, 'scream' => true, 'showLocation' => true, 'strictMode' => true, 'panels' => [ 'routing' => true, 'database' => true, 'model' => true, 'view' => true, 'event' => false, 'session' => true, 'request' => true, 'auth' => true, 'html-validator' => true, 'terminal' => true, ], ];

Editor Link

windows

copy <vendor path>/recca0120/laravel-tracy/tools/subl-handler/subl-handler.vbs to any directory where you want to place double click subl-handler.vbs and select editor (support eclipse, sublime, notepad++, else...) 

If you use Vagrant and have issues with the incorrect path being called, you can create a symlink as illustrated at: https://prnt.sc/lpswki

OSX

https://github.com/dhoulb/subl 

Prefer PhpStorm, you can edit config/tracy.php's key of editor like this:

'editor' => 'phpstorm://open?file=%file&line=%line',

Debugger Bar

Directive bdump

Ajax

Ajax Debugger Bar

Ajax

SystemInfo

SystemInfo

Route

Route

View

View

Session

Session

Request

Request

Auth

Auth

Custom Auth

// app/Providers/AppServiceProvider.php namespace App\Providers; use Recca0120\LaravelTracy\BarManager; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { public function boot(BarManager $barManager) { $barManager->get('auth')->setUserResolver(function() { return [ 'id' => 'xxx', 'username' => 'xxx', ... ]; }); } } 

Html Validator

Html Validator

Web Artisan

web artisan is another package recca0120/terminal Terminal

notice

if you install terminal before, this panel will throw errors, please remove folder app/resources/views/vendor/terminal

STANDALONE

require __DIR__.'/../vendor/autoload.php'; use Recca0120\LaravelTracy\Tracy; // before outout $tracy = Tracy::instance(); $authPanel = $tracy->getPanel('auth'); $authPanel->setUserResolver(function() { return [ 'email' => 'recca0120@gmail.com' ]; }); function sql($sql) { $tracy = Tracy::instance(); $databasePanel = $tracy->getPanel('database'); $databasePanel->logQuery($sql); } sql('select * from users'); sql('select * from news'); sql('select * from products');

Standalone

Thanks

统计信息

  • 总下载量: 281.81k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 389
  • 点击次数: 4
  • 依赖项目数: 5
  • 推荐数: 0

GitHub 信息

  • Stars: 383
  • Watchers: 9
  • Forks: 43
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固