@@ 63-70 (lines=8) @@ | ||
60 | } |
|
61 | else if(is_array($this->storage_path)) { |
|
62 | ||
63 | foreach ($this->storage_path as $value) { |
|
64 | $logsPath = $value . '/' . $folder; |
|
65 | if (app('files')->exists($logsPath)) { |
|
66 | $this->folder = $folder; |
|
67 | break; |
|
68 | } |
|
69 | } |
|
70 | } else { |
|
71 | ||
72 | $logsPath = $this->storage_path . '/' . $folder; |
|
73 | if (app('files')->exists($logsPath)) { |
|
@@ 107-112 (lines=6) @@ | ||
104 | } |
|
105 | if (is_array($this->storage_path)) { |
|
106 | ||
107 | foreach ($this->storage_path as $folder) { |
|
108 | if (app('files')->exists($folder . '/' . $file)) { // try the absolute path |
|
109 | $file = $folder . '/' . $file; |
|
110 | break; |
|
111 | } |
|
112 | } |
|
113 | return $file; |
|
114 | } |
|
115 |