Skip to content

Commit

Permalink
config
Browse files Browse the repository at this point in the history
  • Loading branch information
rap2hpoutre committed Mar 20, 2018
1 parent f513577 commit 2c60194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rap2hpoutre/LaravelLogViewer/LaravelLogViewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 2c60194

Please sign in to comment.