From d593b99eef0273369a59d9d650004ef4107d0814 Mon Sep 17 00:00:00 2001 From: Charles Henry Date: Sun, 24 Jan 2016 23:43:07 +0000 Subject: [PATCH] issue #54 - Replace 'request()->' with 'Request::' to Laravel 5.0 compatibility issue () --- src/controllers/LogViewerController.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/controllers/LogViewerController.php b/src/controllers/LogViewerController.php index 1077550..ca580da 100644 --- a/src/controllers/LogViewerController.php +++ b/src/controllers/LogViewerController.php @@ -14,14 +14,14 @@ class LogViewerController extends Controller public function index() { - if (request()->input('l')) { - LaravelLogViewer::setFile(base64_decode(request()->input('l'))); + if (Request::input('l')) { + LaravelLogViewer::setFile(base64_decode(Request::input('l'))); } - if (request()->input('dl')) { - return Response::download(storage_path() . '/logs/' . base64_decode(request()->input('dl'))); - } elseif (request()->has('del')) { - File::delete(storage_path() . '/logs/' . base64_decode(request()->input('del'))); + if (Request::input('dl')) { + return Response::download(storage_path() . '/logs/' . base64_decode(Request::input('dl'))); + } elseif (Request::has('del')) { + File::delete(storage_path() . '/logs/' . base64_decode(Request::input('del'))); return Redirect::to(Request::url()); }