| @@ 59-66 (lines=8) @@ | ||
| 56 | { |
|
| 57 | //fix multi level folder |
|
| 58 | if(is_array($this->storage_path)){ |
|
| 59 | foreach ($this->storage_path as $value) { |
|
| 60 | $logsPath = $value . '/' . $folder; |
|
| 61 | if (app('files')->exists($logsPath)) { |
|
| 62 | ||
| 63 | $this->folder = $folder; |
|
| 64 | break; |
|
| 65 | } |
|
| 66 | } |
|
| 67 | } else { |
|
| 68 | if (app('files')->exists($folder)) { |
|
| 69 | $this->folder = $folder; |
|
| @@ 98-103 (lines=6) @@ | ||
| 95 | return $file; |
|
| 96 | } |
|
| 97 | if (is_array($this->storage_path)) { |
|
| 98 | foreach ($this->storage_path as $folder) { |
|
| 99 | if (app('files')->exists($folder . '/' . $file)) { // try the absolute path |
|
| 100 | $file = $folder . '/' . $file; |
|
| 101 | break; |
|
| 102 | } |
|
| 103 | } |
|
| 104 | return $file; |
|
| 105 | } |
|
| 106 | ||