{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% import _self as helper %} {% block toolbar %} {% if collector.queries|length > 0 %} {% set icon %} {{ include('@WouterJEloquent/data_collector/icon.svg') }} {{ collector.queries|length }} {% endset %} {% set text %}
Connections {{ collector.usedConnections|length }}
Queries {{ collector.queries|length }}
{% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig') }} {% endif %} {% endblock %} {% block menu %} {{ include('@WouterJEloquent/data_collector/icon.svg') }} Eloquent {% endblock %} {% block panel %}

Eloquent

{{ collector.connections|length }} Connections
{{ collector.queries|length }} Queries

Queries

{% if collector.queries|length == 0 %}

No database queries were performed.

{% else %} {% for query in collector.queries %} {% endfor %}
# Duration Query Connection
{{ loop.index }} {{ '%0.2f'|format(query.time) }} ms {{ query.sql|wouterj_format_sql }}
Bindings: {{ profiler_dump(query.bindings) }}
{{ query.connection }}
{% endif %}

Connections

Used Connections

{% if collector.usedConnections|length == 0 %}

There are no database connections used in this request.

{% else %} {{ helper.connection_table(collector.usedConnections, true) }} {% endif %}

Configured Connections

{% if collector.connections|length == 0 %}

There are no configured database connections.

{% else %} {{ helper.connection_table(collector.connections) }} {% endif %} {% endblock %} {% macro connection_table(connections, expand = false) %} {% for name, config in connections %} {% endfor %}
Name Configuration
{{ name }} {{ profiler_dump(config, expand ? 1 : 0) }}
{% endmacro %}