define storage instances with phpdoc

This commit is contained in:
Saeed Vaziry
2024-01-03 22:31:50 +01:00
parent 31bd146239
commit 2d7f225ff2
9 changed files with 29 additions and 14 deletions

View File

@ -85,7 +85,9 @@ public function regions(): array
public function create(): void
{
// generate key pair
generate_key_pair(Storage::disk(config('core.key_pairs_disk'))->path((string) $this->server->id));
/** @var \Illuminate\Filesystem\FilesystemAdapter $storageDisk */
$storageDisk = Storage::disk(config('core.key_pairs_disk'));
generate_key_pair($storageDisk->path((string) $this->server->id));
$createSshKey = Http::withToken($this->server->serverProvider->credentials['token'])
->post($this->apiUrl.'/ssh-keys', [