Skip to content

Commit

Permalink
Merge pull request #49 from rtconner/patch-1
Browse files Browse the repository at this point in the history
Input facade was deprecated in Laravel 5.2
  • Loading branch information
rap2hpoutre committed Dec 24, 2015
2 parents 73e55f9 + 02c6ddd commit 509217f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/controllers/LogViewerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 509217f

Please sign in to comment.