Fixes port deletion for node allocations as well as server notes on allocations.

closes #305
This commit is contained in:
Dane Everitt 2017-02-17 19:59:40 -05:00
parent 22da8d47c8
commit e9762b4277
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 23 additions and 5 deletions

View file

@ -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);
}
}