Whenever a DB query is done, Debugbar throws an error. [5.2] #432
Closed
Description
Missing argument 2 for Barryvdh\Debugbar\LaravelDebugbar::Barryvdh\Debugbar{closure}() is the specific error.
The exception resides in LaravelDebugbar.php line 291: which is this piece of code
try {
$db->listen(
function ($query, $bindings, $time, $connectionName) use ($db, $queryCollector) {
$connection = $db->connection($connectionName);
$queryCollector->addQuery((string) $query, $bindings, $time, $connection);
}
);
} catch (\Exception $e) {
$this->addException(
new Exception(
'Cannot add listen to Queries for Laravel Debugbar: ' . $e->getMessage(),
$e->getCode(),
$e
)
);
}
Metadata
Assignees
Labels
No labels