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