'date', 'end_date' => 'date', ]; } public function organisation(): BelongsTo { return $this->belongsTo(Organisation::class); } public function users(): BelongsToMany { return $this->belongsToMany(User::class, 'event_user_roles') ->withPivot('role') ->withTimestamps(); } public function invitations(): HasMany { return $this->hasMany(UserInvitation::class); } }