protected function buildQueryCallback(LogManager $logger): callable
    {
        return function (QueryExecuted $query) use ($logger) {
            $sql = Str::replaceArray('?', $query->connection->prepareBindings($query->bindings), $query->sql);

            $logger->info("<comment>{$sql} [{$query->time}ms]</comment>");
        };
    }
protected function buildQueryCallback(LogManager $logger): callable
    {
        return function (QueryExecuted $query) use ($logger) {
            $sql = Str::replaceArray('?', $query->connection->prepareBindings($query->bindings), $query->sql);

            $logger->info("<comment>{$sql} [{$query->time}ms]</comment>");
        };
    }
protected function buildQueryCallback ( LogManager $ logger ) : callable { return function ( QueryExecuted $ query ) use ( $ logger ) { $ sql = Str :: replaceArray ( '?' , $ query -> connection -> prepareBindings ( $ query -> bindings ) , $ query -> sql ) ; $ logger -> info ( "<comment>{$sql} [{$query->time}ms]</comment>" ) ; } ; }
BUild Query Callback.

@param  \Illuminate\Log\LogManager  $logger

@return callable
BUild Query Callback .