$projectMembers * @property-read Collection $timeEntries * * @method static MemberFactory factory() */ class Member extends JetstreamMembership implements AuditableContract { use CustomAuditable; /** @use HasFactory */ 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 timeEntries(): HasMany { return $this->hasMany(TimeEntry::class, 'member_id'); } /** * @return HasMany */ public function projectMembers(): HasMany { return $this->hasMany(ProjectMember::class, 'member_id'); } }