*/ use HasFactory, Notifiable; protected $fillable = [ 'name', 'email', 'password', ]; protected $hidden = [ 'password', 'remember_token', ]; protected function casts(): array { return [ 'email_verified_at' => 'datetime', 'password' => 'hashed', ]; } public function organisations() { return $this->belongsToMany(Organisation::class) ->withPivot('role') ->as('membership') ->using(OrganisationUser::class) ->withTimestamps(); } }