ReviewOS

also looking at this

meemalabs/meema-client-php

Storage Addtional Endpoints

#60
Merged glennmichael123 wants to merge storage-additional-endpoints into main
1 file +27 -3
src/Models/Storage.phpmodified+27-3
Changes to src/Models/Storage.php
@@ -131,11 +131,35 @@ class Storage
131131 *
132132 * @return array
133133 */
134 public function destroyFile($path)
134 public function delete($path)
135135 {
136136 return $this->client->request('POST', 'storage/destroy', compact('path'));
137137 }
138138
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
139163 /**
140164 * Destroy the directory in storage.
141165 *
@@ -143,7 +167,7 @@ class Storage
143167 *
144168 * @return array
145169 */
146 public function destroyDirectory($directory)
170 public function deleteDirectory($directory)
147171 {
148172 return $this->client->request('POST', 'storage/destroy-directory', compact('directory'));
149173 }
@@ -155,7 +179,7 @@ class Storage
155179 *
156180 * @return array
157181 */
158 public function createDirectory($directory)
182 public function makeDirectory($directory)
159183 {
160184 return $this->client->request('POST', 'storage/create-directory', compact('directory'));
161185 }