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

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.

src/Models/Storage.phpmodified+15-3
Changes to src/Models/Storage.php
@@ -133,7 +133,19 @@ class Storage
133133 *
134134 * @return array
135135 */
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)
137149 {
138150 return $this->client->request('POST', 'storage/destroy', compact('path'));
139151 }
@@ -145,7 +157,7 @@ class Storage
145157 *
146158 * @return array
147159 */
148 public function destroyDirectory($directory)
160 public function deleteDirectory($directory)
149161 {
150162 return $this->client->request('POST', 'storage/destroy-directory', compact('directory'));
151163 }
@@ -157,7 +169,7 @@ class Storage
157169 *
158170 * @return array
159171 */
160 public function createDirectory($directory)
172 public function makeDirectory($directory)
161173 {
162174 return $this->client->request('POST', 'storage/create-directory', compact('directory'));
163175 }