'datetime', ]; protected $dates = ['last_on']; /* RELATIONS */ public function systems() { return $this->belongsToMany(System::class); } /* GENERAL METHODS */ /** * See if the user is already a member of the chosen network * * @param Domain $o * @return bool */ public function isMember(Domain $o): bool { return FALSE; } /** * Is this user a ZC of a domain? * * @return bool */ public function isZC(): bool { return $this->systems->pluck('addresses')->flatten()->where('role',Address::NODE_ZC)->count() > 0; } }