id; } public function category() :BelongsTo { return $this->belongsTo(EventCategory::class, 'category_id'); } public function guests() :BelongsToMany { return $this->belongsToMany(User::class, 'event_guest') ->withPivot('is_staff', 'validated_at') ->withTimestamps(); } public function emailedGuests() :HasMany { return $this->hasMany(EventGuestsNonUsers::class, 'event_id'); } }