FEATURE #2389 @2h: add request detail into profiler

This commit is contained in:
Michal Kváček
2017-03-24 01:28:21 +01:00
parent 52e02d67c6
commit 05c9e56973
11 changed files with 273 additions and 90 deletions
@@ -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