From f5135771d0f1ae0078d95e3f8ea72a3fdd0d73df Mon Sep 17 00:00:00 2001 From: rap2h Date: Tue, 20 Mar 2018 10:43:47 +0100 Subject: [PATCH] fix --- src/Rap2hpoutre/LaravelLogViewer/LaravelLogViewer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rap2hpoutre/LaravelLogViewer/LaravelLogViewer.php b/src/Rap2hpoutre/LaravelLogViewer/LaravelLogViewer.php index f2719a4..0a64d27 100644 --- a/src/Rap2hpoutre/LaravelLogViewer/LaravelLogViewer.php +++ b/src/Rap2hpoutre/LaravelLogViewer/LaravelLogViewer.php @@ -165,7 +165,7 @@ public static function all() */ public static function getFiles($basename = false) { - $files = glob(storage_path() . '/logs/' . config('logviewer.pattern')); + $files = glob(storage_path() . '/logs/' . config('logviewer.pattern', '*.log')); $files = array_reverse($files); $files = array_filter($files, 'is_file'); if ($basename && is_array($files)) {