mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-13 11:53:45 +02:00
Fixes port deletion for node allocations as well as server notes on allocations.
closes #305
This commit is contained in:
@@ -74,4 +74,14 @@ class Allocation extends Model
|
||||
{
|
||||
return ! is_null($this->ip_alias);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets information for the server associated with this allocation.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
*/
|
||||
public function server()
|
||||
{
|
||||
return $this->belongsTo(Server::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user