diff --git a/src/controllers/LogViewerController.php b/src/controllers/LogViewerController.php index f8cf62a..828e796 100644 --- a/src/controllers/LogViewerController.php +++ b/src/controllers/LogViewerController.php @@ -37,7 +37,6 @@ class LogViewerController extends BaseController public function __construct() { $this->log_viewer = new LaravelLogViewer(); - $this->request = app('request'); } /** @@ -46,6 +45,7 @@ public function __construct() */ public function index() { + $this->request = app('request'); $folderFiles = []; if ($this->request->input('f')) { $this->log_viewer->setFolder(Crypt::decrypt($this->request->input('f')));