saloon, hetzner requests, spatie/ssh, serverprovider enum

This commit is contained in:
2025-03-27 12:56:28 +00:00
parent 25428dbd31
commit 2c881c9722
10 changed files with 290 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Models;
use App\Enums\ServerProvider;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
@@ -9,6 +10,13 @@ class Server extends Model
{
protected $guarded = [];
protected function casts(): array
{
return [
'provider' => ServerProvider::class,
];
}
public function services(): HasMany
{
return $this->hasMany(Service::class);