diff --git a/src/LogTypeRegistrar.php b/src/LogTypeRegistrar.php index 754cf243..4479b4e5 100644 --- a/src/LogTypeRegistrar.php +++ b/src/LogTypeRegistrar.php @@ -114,6 +114,6 @@ public function guessTypeFromFileName(LogFile $file): ?string protected function isPossiblyLaravelLogFile(string $fileName): bool { return $fileName === 'laravel.log' - || preg_match('/laravel-\d{4}-\d{2}-\d{2}\.log/', $fileName); + || preg_match('/laravel-[\w\W]*.log/', $fileName); } }