for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
require __DIR__.'/../vendor/autoload.php';
use Recca0120\LaravelTracy\Tracy;
// before outout
$tracy = Tracy::instance();
function sql($sql)
{
$databasePanel = $tracy->getPanel('database');
$databasePanel->logQuery($sql);
}
sql('select * from users');
sql('select * from news');
sql('select * from products');