Skip to content

Commit

Permalink
Droplets Api
Browse files Browse the repository at this point in the history
  • Loading branch information
arayiksmbatyan committed Dec 28, 2021
1 parent 61081eb commit 05997d8
Show file tree
Hide file tree
Showing 13 changed files with 470 additions and 11 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

125 changes: 125 additions & 0 deletions .idea/digitalocean-api.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

126 changes: 126 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/phpunit.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"DigitaloceanApi\\Providers\\ConfigServiceProvider"
],
"aliases": {
"Domains": "DigitaloceanApi\\Facades\\DomainFacade"
"Domains": "DigitaloceanApi\\Facades\\DomainFacade",
"Droplets": "DigitaloceanApi\\Facades\\DropletFacade"
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion config/digital-ocean.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
return [
'token' => env('TOKEN', ''),
'api-urls' => [
'domains' => 'https://api.digitalocean.com/v2/domains'
'domains' => 'https://api.digitalocean.com/v2/domains',
'droplets' => 'https://api.digitalocean.com/v2/droplets'
],
];
14 changes: 14 additions & 0 deletions src/Facades/DropletFacade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace DigitaloceanApi\Facades;

use Illuminate\Support\Facades\Facade;
use Services\DropletService;

class DropletFacade extends Facade
{
public static function getFacadeAccessor()
{
return DropletService::class;
}
}
Loading

0 comments on commit 05997d8

Please sign in to comment.