also looking at this
Storage Addtional Endpoints
#60
1 file
+27
-3
Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.
| @@ -133,7 +133,19 @@ class Storage | ||
| 133 | 133 | * |
| 134 | 134 | * @return array |
| 135 | 135 | */ |
| 136 | public function destroyFile($path) | |
| 136 | public function delete($path) | |
| 137 | { | |
| 138 | return $this->client->request('POST', 'storage/destroy', compact('path')); | |
| 139 | } | |
| 140 | ||
| 141 | /** | |
| 142 | * Destroy the file in storage. | |
| 143 | * | |
| 144 | * @param string $path | |
| 145 | * | |
| 146 | * @return array | |
| 147 | */ | |
| 148 | public function delete($path) | |
| 137 | 149 | { |
| 138 | 150 | return $this->client->request('POST', 'storage/destroy', compact('path')); |
| 139 | 151 | } |
| @@ -145,7 +157,7 @@ class Storage | ||
| 145 | 157 | * |
| 146 | 158 | * @return array |
| 147 | 159 | */ |
| 148 | public function destroyDirectory($directory) | |
| 160 | public function deleteDirectory($directory) | |
| 149 | 161 | { |
| 150 | 162 | return $this->client->request('POST', 'storage/destroy-directory', compact('directory')); |
| 151 | 163 | } |
| @@ -157,7 +169,7 @@ class Storage | ||
| 157 | 169 | * |
| 158 | 170 | * @return array |
| 159 | 171 | */ |
| 160 | public function createDirectory($directory) | |
| 172 | public function makeDirectory($directory) | |
| 161 | 173 | { |
| 162 | 174 | return $this->client->request('POST', 'storage/create-directory', compact('directory')); |
| 163 | 175 | } |