From 2c60194f850ea3e54e338c2a0e1fbb1b3d9f70e6 Mon Sep 17 00:00:00 2001 From: rap2h Date: Tue, 20 Mar 2018 21:53:09 +0100 Subject: [PATCH] config --- 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 0a64d27..64e8379 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', '*.log')); + $files = glob(storage_path() . '/logs/' . (function_exists('config') ? config('logviewer.pattern', '*.log') : '*.log')); $files = array_reverse($files); $files = array_filter($files, 'is_file'); if ($basename && is_array($files)) {