Skip to content

Commit

Permalink
Merge pull request #55 from CharlesHenry/master
Browse files Browse the repository at this point in the history
issue #54 - Replace 'request()->' with 'Request::' to Laravel 5.0 com…
  • Loading branch information
rap2hpoutre committed Jan 25, 2016
2 parents 53d178d + d593b99 commit 120ed18
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/controllers/LogViewerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 120ed18

Please sign in to comment.