Changed composer.json and edited the ContaboAPI.php

This commit is contained in:
ShadowVirtual 2024-04-01 18:52:34 -08:00
parent da359a606a
commit 02516f6b82
2 changed files with 5 additions and 4 deletions

View file

@ -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(); ]);
} }
/** /**

View file

@ -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": {