Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rap2hpoutre committed Mar 20, 2018
1 parent 0ec65f0 commit f513577
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'));
$files = glob(storage_path() . '/logs/' . config('logviewer.pattern', '*.log'));
$files = array_reverse($files);
$files = array_filter($files, 'is_file');
if ($basename && is_array($files)) {
Expand Down

0 comments on commit f513577

Please sign in to comment.