From 02c6ddd38e417ea5c96042f9195264201ed966ae Mon Sep 17 00:00:00 2001 From: Rob Date: Thu, 24 Dec 2015 00:20:01 -0500 Subject: [PATCH] Input facade was deprecated in Laravel 5.2 --- src/controllers/LogViewerController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/controllers/LogViewerController.php b/src/controllers/LogViewerController.php index 9a3ac7a..0b543af 100644 --- a/src/controllers/LogViewerController.php +++ b/src/controllers/LogViewerController.php @@ -15,14 +15,14 @@ class LogViewerController extends Controller public function index() { - if (Input::get('l')) { - LaravelLogViewer::setFile(base64_decode(Input::get('l'))); + if (request()->input('l')) { + LaravelLogViewer::setFile(base64_decode(request()->input('l'))); } - if (Input::get('dl')) { - return Response::download(storage_path() . '/logs/' . base64_decode(Input::get('dl'))); + if (request()->input('dl')) { + return Response::download(storage_path() . '/logs/' . base64_decode(request()->input('dl'))); } elseif (Input::has('del')) { - File::delete(storage_path() . '/logs/' . base64_decode(Input::get('del'))); + File::delete(storage_path() . '/logs/' . base64_decode(request()->input('del'))); return Redirect::to(Request::url()); }