mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-16 21:33:44 +02:00
More model updates to more places than I anticipated.
This probably broke a lot of things.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user