Skip to content

Commit 83b8617

Browse files
committed
remove replace slashes
1 parent df16579 commit 83b8617

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/LogViewerService.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected function getFilePaths(): array
2929
$baseDir = str_replace(
3030
['[', ']'],
3131
['{LEFTBRACKET}', '{RIGHTBRACKET}'],
32-
str_replace('\\', '/', $this->basePathForLogs()),
32+
$this->basePathForLogs(),
3333
);
3434
$baseDir = str_replace(
3535
['{LEFTBRACKET}', '{RIGHTBRACKET}', '\\'],
@@ -75,8 +75,6 @@ protected function getFilePathsMatchingPattern($pattern, $absolute = false): arr
7575
}
7676

7777
foreach ($scannedFiles as $file) {
78-
$file = str_replace('\\', '/', $file);
79-
8078
if (preg_match(pattern: Glob::toRegex(glob: $pattern), subject: $file)) {
8179
$files[] = isset($dirname)
8280
? $dirname.DIRECTORY_SEPARATOR.$file

src/LogViewerServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function register()
2323

2424
$this->app['config']['filesystems.disks.log-viewer-local'] = [
2525
'driver' => 'local',
26-
'root' => str_replace('\\', '/', storage_path('logs')),
26+
'root' => storage_path('logs'),
2727
];
2828

2929
$this->app->bind('log-viewer', LogViewerService::class);

0 commit comments

Comments
 (0)