From 2c24885e6cb062c8f1922dae27b198c91777f382 Mon Sep 17 00:00:00 2001 From: ARCANEDEV Date: Wed, 16 Oct 2019 15:23:18 +0100 Subject: [PATCH] Fixing the logviewer --- src/Http/Controllers/Admin/System/LogViewerController.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Http/Controllers/Admin/System/LogViewerController.php b/src/Http/Controllers/Admin/System/LogViewerController.php index 2dec87a..6a51cd1 100644 --- a/src/Http/Controllers/Admin/System/LogViewerController.php +++ b/src/Http/Controllers/Admin/System/LogViewerController.php @@ -131,12 +131,13 @@ public function show(Log $log) $levels = $this->logViewer->levelsNames(); $entries = $log->entries($level = 'all')->paginate($this->perPage); + $query = ''; $this->addBreadcrumbRoute(trans('foundation::log-viewer.titles.logs-list'), 'admin::foundation.system.log-viewer.logs.list'); $this->setTitle($title = "Log : {$log->date}"); $this->addBreadcrumb($title); - return $this->view('admin.system.log-viewer.show', compact('log', 'levels', 'level', 'search', 'entries')); + return $this->view('admin.system.log-viewer.show', compact('log', 'levels', 'level', 'query', 'entries')); } /** @@ -156,6 +157,7 @@ public function showByLevel(Log $log, $level) $levels = $this->logViewer->levelsNames(); $entries = $this->logViewer->entries($log->date, $level)->paginate($this->perPage); + $query = ''; $this->addBreadcrumbRoute(trans('foundation::log-viewer.titles.logs-list'), 'admin::foundation.system.log-viewer.logs.list'); @@ -163,7 +165,7 @@ public function showByLevel(Log $log, $level) $this->addBreadcrumbRoute($log->date, 'admin::foundation.system.log-viewer.logs.show', [$log->date]); $this->addBreadcrumb(ucfirst($level)); - return $this->view('admin.system.log-viewer.show', compact('log', 'levels', 'entries', 'level')); + return $this->view('admin.system.log-viewer.show', compact('log', 'levels', 'query', 'entries', 'level')); } /**