'array', ]; } public function users(): BelongsToMany { return $this->belongsToMany(User::class, 'organisation_user') ->withPivot('role') ->withTimestamps(); } public function events(): HasMany { return $this->hasMany(Event::class); } public function invitations(): HasMany { return $this->hasMany(UserInvitation::class); } public function crowdTypes(): HasMany { return $this->hasMany(CrowdType::class); } public function companies(): HasMany { return $this->hasMany(Company::class); } }