-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
I've tried doing it in a listener in my AppServiceProvider like:
class AppServiceProvider extends ServiceProvider
{
public function boot(){
$config = $this->app['config']['tracy'];
$enabled = Arr::get($config, 'enabled', true) === true;
if ($enabled === true) {
/** @var QueryExecuted $query */
DB::listen(function ($query) {
$tracy = Tracy::instance();
$databasePanel = $tracy->getPanel('database');
/** @var DatabasePanel $databasePanel */
$databasePanel->logQuery($query->sql, $query->bindings, $query->time);
});
}
}
}
Unfortunately, your super neat findSource function just points me back to my index.php if I do this. Thank you so much! :D
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels