Skip to content

Whenever a DB query is done, Debugbar throws an error. [5.2] #432

Closed
@JapSeyz

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions