recca0120 / laravel-tracy
A Laravel Package to integrate Nette Tracy Debugger
Installs: 275 395
Dependents: 5
Suggesters: 0
Security: 0
Stars: 385
Watchers: 11
Forks: 44
Open Issues: 5
Requires
- php: >=5.5.9
- illuminate/contracts: ^5.1|^6.0|^7.0|^8.0|^9.0|^10.0
- illuminate/database: ^5.1|^6.0|^7.0|^8.0|^9.0|^10.0
- illuminate/routing: ^5.1|^6.0|^7.0|^8.0|^9.0|^10.0
- illuminate/session: ^5.1|^6.0|^7.0|^8.0|^9.0|^10.0
- illuminate/support: ^5.1|^6.0|^7.0|^8.0|^9.0|^10.0
- illuminate/view: ^5.1|^6.0|^7.0|^8.0|^9.0|^10.0
- recca0120/terminal: ^1.8
- tracy/tracy: >=2.4,<2.9
Requires (Dev)
- mockery/mockery: ^1.0
- nesbot/carbon: ^1.20|^2.0
- orchestra/testbench: ^2.0|^3.0|^4.18|^5.20|^6.23|^7.0|^8.0
- phpunit/phpunit: ^4.8|^5.4|^6.1|^7.0|^8.0|^9.0
- dev-master
- v1.16.0
- v1.15.1
- v1.15.0
- v1.14.2
- v1.14.1
- v1.14.0
- v1.13.1
- v1.13.0
- v1.12.0
- v1.11.1
- v1.11.0
- 1.10.0
- v1.9.0
- v1.8.23
- v1.8.22
- v1.8.20
- v1.8.19
- v1.8.18
- v1.8.17
- v1.8.16
- v1.8.15
- v1.8.14
- v1.8.13
- v1.8.12
- v1.8.11
- v1.8.10
- v1.8.9
- v1.8.8
- v1.8.7
- v1.8.6
- v1.8.5
- v1.8.4
- v1.8.3
- v1.8.2
- v1.8.1
- v1.8.0
- v1.7.17
- v1.7.16
- v1.7.15
- v1.7.14
- v1.7.13
- v1.7.12
- v1.7.11
- v1.7.10
- v1.7.9
- v1.7.8
- v1.7.7
- v1.7.5
- v1.7.4
- v1.7.3
- v1.7.2
- v1.7.1
- v1.7.0
- v1.6.8
- v1.6.7
- v1.6.6
- v1.6.5
- v1.6.1
- v1.6.0
- v1.5.9
- v1.5.8
- v1.5.7
- v1.5.6
- v1.5.4
- v1.5.2
- v1.5.0
- 1.4.x-dev
- v1.4.4.3
- v1.4.4.2
- v1.4.4.1
- v1.4.4
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- 1.3.x-dev
- v1.3.9
- v1.3.8
- v1.3.0
- v1.2.5
- v1.2.4
- v1.1.3
- v1.1.2
- v1.1.0
- v1.0.19
- v1.0.15
- v1.0.12
- v1.0.11
- v1.0.10
- v1.0.9
- v1.0.6
- dev-session-compress
- dev-laravel50
- dev-develop
This package is auto-updated.
Last update: 2024-10-15 17:22:43 UTC
README
Nette Tracy for Laravel 5
Better Laravel Exception Handler
Features
- Visualization of errors and exceptions
- Debugger Bar (ajax support @v1.5.6)
- Exception stack trace contains values of all method arguments.
Online 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 Debugger Bar
SystemInfo
Route
View
Session
Request
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
Web Artisan
web artisan is another package recca0120/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');