From 92cc5fd07310483e74c42a666723ffafe8f1ffac Mon Sep 17 00:00:00 2001 From: Kevin Arjuna Date: Sat, 17 Feb 2024 11:42:47 +0700 Subject: [PATCH] feat: add show route config --- config/log-viewer.php | 2 ++ src/Http/Controllers/LogViewerController.php | 1 + 2 files changed, 3 insertions(+) diff --git a/config/log-viewer.php b/config/log-viewer.php index 79c4c7b2..a6b77e20 100644 --- a/config/log-viewer.php +++ b/config/log-viewer.php @@ -55,6 +55,8 @@ 'middleware' => env('ARCANEDEV_LOGVIEWER_MIDDLEWARE') ? explode(',', env('ARCANEDEV_LOGVIEWER_MIDDLEWARE')) : null, ], + + 'show' => 'log-viewer::logs.show' ], /* ----------------------------------------------------------------- diff --git a/src/Http/Controllers/LogViewerController.php b/src/Http/Controllers/LogViewerController.php index afcf9684..389dc7ad 100644 --- a/src/Http/Controllers/LogViewerController.php +++ b/src/Http/Controllers/LogViewerController.php @@ -52,6 +52,7 @@ public function __construct(LogViewerContract $logViewer) { $this->logViewer = $logViewer; $this->perPage = config('log-viewer.per-page', $this->perPage); + $this->showRoute = config('log-viewer.route.show', $this->showRoute); } /* -----------------------------------------------------------------