From 19c78d7b81b0f062d4a1a61fb0c0310305b097c2 Mon Sep 17 00:00:00 2001 From: z-song Date: Wed, 25 Apr 2018 14:14:03 +0800 Subject: [PATCH] fix issue #3 --- src/LogController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LogController.php b/src/LogController.php index 8265ff7..3f6e925 100644 --- a/src/LogController.php +++ b/src/LogController.php @@ -9,7 +9,7 @@ class LogController extends Controller { - public function index($file, Request $request) + public function index($file = null, Request $request) { if ($file === null) { $file = (new LogViewer())->getLastModifiedLog();