We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getFolders()
1 parent 8445e70 commit 3288a9fCopy full SHA for 3288a9f
src/EnvoyerApi.php
@@ -174,6 +174,18 @@ public function getHooks(): Collection
174
return collect($hooks->hooks ?? []);
175
}
176
177
+ /**
178
+ * Get the specified project's linked folders.
179
+ */
180
+ public function getFolders(): Collection
181
+ {
182
+ $folders = json_decode(
183
+ $this->api()->get("/projects/{$this->project}/folders")->body()
184
+ );
185
+
186
+ return collect($folders->folders ?? []);
187
+ }
188
189
/**
190
* Create a new deployment.
191
*/
0 commit comments