More model updates to more places than I anticipated.

This probably broke a lot of things.
This commit is contained in:
Dane Everitt
2017-02-09 17:43:54 -05:00
parent 0d61417814
commit 4f61637284
21 changed files with 339 additions and 433 deletions

View File

@@ -63,4 +63,15 @@ class Allocation extends Model
{
return (is_null($this->ip_alias)) ? $this->ip : $this->ip_alias;
}
/**
* Accessor to quickly determine if this allocation has an alias.
*
* @param null|string $value
* @return boolean
*/
public function getHasAliasAttribute($value)
{
return (! is_null($this->ip_alias));
}
}