diff --git a/src/controllers/LogViewerController.php b/src/controllers/LogViewerController.php index 60ba558..b516d31 100644 --- a/src/controllers/LogViewerController.php +++ b/src/controllers/LogViewerController.php @@ -14,6 +14,9 @@ public function index() if (\Input::get('dl')) { return \Response::download(storage_path() . '/logs/' . base64_decode(\Input::get('dl'))); + } elseif (\Input::has('del')) { + \File::delete(storage_path() . '/logs/' . base64_decode(\Input::get('del'))); + return \Redirect::to(\Request::url()); } $logs = LaravelLogViewer::all(); diff --git a/src/views/log.blade.php b/src/views/log.blade.php index 687c30a..9675c56 100644 --- a/src/views/log.blade.php +++ b/src/views/log.blade.php @@ -94,6 +94,8 @@ @endif