*/ use HasFactory; use HasUuids; /** * The table associated with the pivot model. * * @var string */ protected $table = 'members'; /** * @return BelongsTo */ public function user(): BelongsTo { return $this->belongsTo(User::class, 'user_id'); } /** * @return BelongsTo */ public function organization(): BelongsTo { return $this->belongsTo(Organization::class, 'organization_id'); } /** * @return HasMany */ public function projectMembers(): HasMany { return $this->hasMany(ProjectMember::class, 'member_id'); } }