Skip to content

Commit

Permalink
Added check if file matches regex
Browse files Browse the repository at this point in the history
  • Loading branch information
andypa authored Nov 15, 2019
1 parent 9b31212 commit 5d87819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/LogsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function index()
public function dailyLogFiles()
{
return collect(Ward::getFiles(true))->filter(function ($file) {
return strpos($file, 'laravel') === 0;
return preg_match(config('nova-logs-tool.regexForFiles'), $file);
})->values()->all();
}

Expand Down

0 comments on commit 5d87819

Please sign in to comment.