We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Isn't there a method for getting just a single droplet for the specific ID? Like:
public function power($droplet_id) { dd(DigitalOcean::droplet($droplet_id)); return redirect()->back(); }
The text was updated successfully, but these errors were encountered:
Yes DigitalOcean::droplet()->getById($droplet_id) will return a droplet entity.
DigitalOcean::droplet()->getById($droplet_id)
See https://github.com/toin0u/DigitalOceanV2/blob/master/src/Api/Droplet.php#L102 and https://github.com/toin0u/DigitalOceanV2/blob/master/src/Entity/Droplet.php.
Sorry, something went wrong.
Thanks! Way better than
private function droplet($id) { foreach (DigitalOcean::droplet()->getAll() as $droplet) { if ($droplet->id == $id) { return $droplet; } } return null; }
No branches or pull requests
Isn't there a method for getting just a single droplet for the specific ID?
Like:
The text was updated successfully, but these errors were encountered: