also looking at this
Storage Addtional Endpoints
#60
1 file
+27
-3
| @@ -131,11 +131,35 @@ class Storage | ||
| 131 | 131 | * |
| 132 | 132 | * @return array |
| 133 | 133 | */ |
| 134 | public function destroyFile($path) | |
| 134 | public function delete($path) | |
| 135 | 135 | { |
| 136 | 136 | return $this->client->request('POST', 'storage/destroy', compact('path')); |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | /** | |
| 140 | * Copy the file in storage. | |
| 141 | * | |
| 142 | * @param string $path | |
| 143 | * | |
| 144 | * @return array | |
| 145 | */ | |
| 146 | public function copy($path, $newpath) | |
| 147 | { | |
| 148 | return $this->client->request('POST', 'storage/copy', compact('path', 'newpath')); | |
| 149 | } | |
| 150 | ||
| 151 | /** | |
| 152 | * Rename the file in storage. | |
| 153 | * | |
| 154 | * @param string $path | |
| 155 | * | |
| 156 | * @return array | |
| 157 | */ | |
| 158 | public function rename($path, $newpath) | |
| 159 | { | |
| 160 | return $this->client->request('POST', 'storage/rename', compact('path', 'newpath')); | |
| 161 | } | |
| 162 | ||
| 139 | 163 | /** |
| 140 | 164 | * Destroy the directory in storage. |
| 141 | 165 | * |
| @@ -143,7 +167,7 @@ class Storage | ||
| 143 | 167 | * |
| 144 | 168 | * @return array |
| 145 | 169 | */ |
| 146 | public function destroyDirectory($directory) | |
| 170 | public function deleteDirectory($directory) | |
| 147 | 171 | { |
| 148 | 172 | return $this->client->request('POST', 'storage/destroy-directory', compact('directory')); |
| 149 | 173 | } |
| @@ -155,7 +179,7 @@ class Storage | ||
| 155 | 179 | * |
| 156 | 180 | * @return array |
| 157 | 181 | */ |
| 158 | public function createDirectory($directory) | |
| 182 | public function makeDirectory($directory) | |
| 159 | 183 | { |
| 160 | 184 | return $this->client->request('POST', 'storage/create-directory', compact('directory')); |
| 161 | 185 | } |