change egg relation of server to belongsTo (fixes server creation)

This commit is contained in:
Boy132 2025-09-05 09:32:41 +02:00
parent 72ede60af8
commit 437d32efae

View File

@ -292,9 +292,9 @@ class Server extends Model implements Validatable
/** /**
* Gets information for the egg associated with this server. * Gets information for the egg associated with this server.
*/ */
public function egg(): HasOne public function egg(): BelongsTo
{ {
return $this->hasOne(Egg::class, 'id', 'egg_id'); return $this->belongsTo(Egg::class);
} }
public function eggVariables(): HasMany public function eggVariables(): HasMany