We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98a333e commit f6acf97Copy full SHA for f6acf97
src/Rap2hpoutre/LaravelLogViewer/LaravelLogViewer.php
@@ -57,13 +57,10 @@ public function setFolder($folder)
57
if (app('files')->exists($folder)) {
58
$this->folder = $folder;
59
}
60
- if(is_array($this->storage_path)){
61
- foreach ($this->storage_path as $value) {
62
- $logsPath = $value . '/' . $folder;
63
- if (app('files')->exists($logsPath)) {
64
- $this->folder = $folder;
65
- break;
66
- }
+ if ($this->storage_path) {
+ $logsPath = $this->storage_path . '/' . $folder;
+ if (app('files')->exists($logsPath)) {
+ $this->folder = $folder;
67
68
69
0 commit comments