also looking at this
Final Storage Endpoints
#61
1 file
+36
-0
| @@ -148,6 +148,42 @@ class Storage | ||
| 148 | 148 | return $this->client->request('POST', 'storage/copy', compact('path', 'newpath')); |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | /** | |
| 152 | * Copy the file in storage. | |
| 153 | * | |
| 154 | * @param string $path | |
| 155 | * | |
| 156 | * @return array | |
| 157 | */ | |
| 158 | public function read($path) | |
| 159 | { | |
| 160 | return $this->client->request('POST', 'storage/read', compact('path')); | |
| 161 | } | |
| 162 | ||
| 163 | /** | |
| 164 | * Copy the file in storage. | |
| 165 | * | |
| 166 | * @param string $path | |
| 167 | * | |
| 168 | * @return array | |
| 169 | */ | |
| 170 | public function readStream($path) | |
| 171 | { | |
| 172 | return $this->client->request('POST', 'storage/read-stream', compact('path')); | |
| 173 | } | |
| 174 | ||
| 175 | /** | |
| 176 | * List contents of directory. | |
| 177 | * | |
| 178 | * @param string $path | |
| 179 | * | |
| 180 | * @return array | |
| 181 | */ | |
| 182 | public function listContents($directory) | |
| 183 | { | |
| 184 | return $this->client->request('POST', 'storage/list-contents', compact('directory')); | |
| 185 | } | |
| 186 | ||
| 151 | 187 | /** |
| 152 | 188 | * Rename the file in storage. |
| 153 | 189 | * |