'datetime', 'last_on' => 'datetime:Y-m-d H:i:s' ]; /* RELATIONS */ public function system() { return $this->belongsTo(System::class); } 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; } }