FEATURE #2389 @2h: add request detail into profiler
This commit is contained in:
@@ -1,15 +1,28 @@
|
||||
<?php namespace Modules\Profiler\Http\Controllers;
|
||||
|
||||
use App\Http\Controllers\Admin\Controller;
|
||||
use Illuminate\Support\Facades\Input;
|
||||
use Modules\Profiler\Entities\HttpLog;
|
||||
|
||||
class ProfilerController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
$filters = [];
|
||||
$httpLog = HttpLog::orderBy('created_at', 'DESC')
|
||||
->with('queries')
|
||||
->paginate(25);
|
||||
->with('queries');
|
||||
|
||||
if (Input::get('method')) {
|
||||
$filters[] = 'method';
|
||||
$httpLog = $httpLog->where('method', Input::get('method'));
|
||||
}
|
||||
|
||||
if (Input::get('url')) {
|
||||
$filters[] = 'url';
|
||||
$httpLog = $httpLog->where('url', Input::get('url'));
|
||||
}
|
||||
|
||||
$httpLog = $httpLog->paginate(25);
|
||||
|
||||
return view('profiler::index', compact('httpLog'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user