added "members" for an event that help the admins to moderate. members must be invited via email.
This commit is contained in:
@@ -107,6 +107,11 @@ class Event extends Model
|
||||
return $this->hasMany(EventJoinToken::class);
|
||||
}
|
||||
|
||||
public function members(): HasMany
|
||||
{
|
||||
return $this->hasMany(EventMember::class);
|
||||
}
|
||||
|
||||
public function hasActivePackage(): bool
|
||||
{
|
||||
return $this->eventPackage && $this->eventPackage->isActive();
|
||||
|
||||
Reference in New Issue
Block a user