Skip to content

Commit

Permalink
Update LogViewerController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rap2hpoutre committed Nov 24, 2014
1 parent 5898047 commit 5abc624
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/controllers/LogViewerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,18 @@ class LogViewerController extends \BaseController

public function index()
{
if (\Input::get('l')) {
LaravelLogViewer::setFile(\Crypt::decrypt(\Input::get('l')));
}

$logs = LaravelLogViewer::all();

View::addNamespace('laravel-log-viewer', __DIR__.'/../views');
return View::make('laravel-log-viewer::log', ['logs' => $logs]);

return View::make('laravel-log-viewer::log', [
'logs' => $logs,
'files' => LaravelLogViewer::getFiles(true)]
);
}

}

0 comments on commit 5abc624

Please sign in to comment.