diff --git a/src/Rap2hpoutre/LaravelLogViewer/LaravelLogViewer.php b/src/Rap2hpoutre/LaravelLogViewer/LaravelLogViewer.php index ec6aafd..555eb23 100644 --- a/src/Rap2hpoutre/LaravelLogViewer/LaravelLogViewer.php +++ b/src/Rap2hpoutre/LaravelLogViewer/LaravelLogViewer.php @@ -57,13 +57,10 @@ public function setFolder($folder) if (app('files')->exists($folder)) { $this->folder = $folder; } - if(is_array($this->storage_path)){ - foreach ($this->storage_path as $value) { - $logsPath = $value . '/' . $folder; - if (app('files')->exists($logsPath)) { - $this->folder = $folder; - break; - } + if ($this->storage_path) { + $logsPath = $this->storage_path . '/' . $folder; + if (app('files')->exists($logsPath)) { + $this->folder = $folder; } } }