Changed composer.json and edited the ContaboAPI.php
This commit is contained in:
parent
da359a606a
commit
02516f6b82
2 changed files with 5 additions and 4 deletions
|
@ -4,6 +4,7 @@ namespace App\Services\Contabo;
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Http;
|
use Illuminate\Support\Facades\Http;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
|
use Illuminate\Support\Collection;
|
||||||
|
|
||||||
class ContaboAPI
|
class ContaboAPI
|
||||||
{
|
{
|
||||||
|
@ -65,11 +66,11 @@ class ContaboAPI
|
||||||
/**
|
/**
|
||||||
* Get the available images as a Laravel collection
|
* Get the available images as a Laravel collection
|
||||||
*/
|
*/
|
||||||
public function getImages()
|
public function getImages(): Collection
|
||||||
{
|
{
|
||||||
return $this->api('get', '/compute/images', [
|
return $this->api('get', '/compute/images', [
|
||||||
'size' => 100,
|
'size' => 100,
|
||||||
])->collect();
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
"description": "A contabo service for developers",
|
"description": "A contabo service for developers",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "WemX",
|
"name": "ShadowVirtual",
|
||||||
"email": "mubeen@wemx.net"
|
"email": "shadowvr@gmail.com"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"extra": {
|
"extra": {
|
||||||
|
|
Loading…
Reference in a new issue