This commit is contained in:
2025-04-06 18:30:25 +01:00
parent 2d15f87f42
commit 319520c650
5 changed files with 91 additions and 0 deletions

View File

@@ -25,6 +25,16 @@ class Server extends Model
];
}
public function externalNetwork(): BelongsTo
{
return $this->belongsTo(Network::class, 'external_network_id');
}
public function internalNetwork(): BelongsTo
{
return $this->belongsTo(Network::class, 'internal_network_id');
}
public function organisation(): BelongsTo
{
return $this->belongsTo(Organisation::class);