@php // Capture ALL queries at render time (this is the last moment before displaying) if (isset($queryDebugEnabled) && $queryDebugEnabled) { $finalQueries = \App\Services\QueryDebugService::getAllQueriesAtRenderTime(); $finalSummary = \App\Services\QueryDebugService::getSummary(); $queriesByPurpose = \App\Services\QueryDebugService::getQueriesByPurpose(); } else { $finalQueries = []; $finalSummary = []; $queriesByPurpose = []; } @endphp @if(isset($queryDebugEnabled) && $queryDebugEnabled && !empty($finalQueries))
{{ $queryDebugPageInfo['url'] ?? 'N/A' }}
Path:
{{ $queryDebugPageInfo['path'] ?? 'N/A' }}
Route Name:
{{ $queryDebugPageInfo['route_name'] ?? 'N/A' }}
Route URI:
{{ $queryDebugPageInfo['route_uri'] ?? 'N/A' }}
HTTP Method:
{{ $queryDebugPageInfo['method'] ?? 'N/A' }}
@if(!empty($queryDebugPageInfo['controller']))
Controller:
{{ $queryDebugPageInfo['controller'] }}
@endif
@if(!empty($queryDebugPageInfo['referrer']))
Referrer:
{{ $queryDebugPageInfo['referrer'] }}
@endif
Timestamp:
{{ $queryDebugPageInfo['timestamp'] ?? 'N/A' }}
?query=1 parameter.
|
Hide Queries
{{ $query['source']['section'] }}
@endif
@if(!empty($query['source']['component']))
Component:
{{ $query['source']['component'] }}
@endif
@if(!empty($query['source']['controller']))
Controller:
{{ $query['source']['controller'] }}
@endif
@if(!empty($query['source']['method']))
Method:
{{ $query['source']['method'] }}()
@endif
@if(!empty($query['source']['class']))
Class:
{{ $query['source']['class'] }}
@endif
@if(!empty($query['source']['file']))
File:
{{ $query['source']['file'] }}@if(!empty($query['source']['line'])):{{ $query['source']['line'] }}@endif
@endif
{{ $query['sql'] }}
{{ json_encode($query['bindings'], JSON_PRETTY_PRINT) }}