FEATURE #2389 @2h: add request detail into profiler
This commit is contained in:
@@ -4,30 +4,34 @@
|
||||
|
||||
@section('content')
|
||||
|
||||
<table class="table stripped">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>@lang('profiler::module.queries.createdAt')</td>
|
||||
<td>@lang('profiler::module.queries.sql')</td>
|
||||
<td>@lang('profiler::module.queries.binding')</td>
|
||||
<td>@lang('profiler::module.queries.time')</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<div class="card">
|
||||
<div class="card-block">
|
||||
<table class="table stripped">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>@lang('profiler::module.queries.sql')</td>
|
||||
<td>@lang('profiler::module.queries.time')</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
|
||||
@foreach($queries as $query)
|
||||
<tr>
|
||||
<td>{{$query->created_at->format('d.m.Y G:i')}}</td>
|
||||
<td>{{$query->query}}</td>
|
||||
<td>
|
||||
@foreach($queries as $query)
|
||||
<tr>
|
||||
<td>
|
||||
@php $sql = $query->query; @endphp
|
||||
@foreach($query->bindings as $value)
|
||||
@php $sql = preg_replace('/\?/', $value, $sql, 1); @endphp
|
||||
@endforeach
|
||||
|
||||
{{var_export($query->bindings)}}
|
||||
</td>
|
||||
<td>{{number_format($query->time, 3)}} ms</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
{{$sql}}
|
||||
</td>
|
||||
<td>{{number_format($query->time, 3)}} ms</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user