'datetime', 'password' => 'hashed', ]; } public function organisations(): BelongsToMany { return $this->belongsToMany(Organisation::class, 'organisation_user') ->withPivot('role') ->withTimestamps(); } public function events(): BelongsToMany { return $this->belongsToMany(Event::class, 'event_user_roles') ->withPivot('role') ->withTimestamps(); } }