TimelineStatus::class, ]; } /** * Get the user that owns the timeline. */ public function user(): BelongsTo { return $this->belongsTo(User::class); } /** * Get the updates for the timeline, ordered chronologically (oldest first). */ public function updates(): HasMany { return $this->hasMany(TimelineUpdate::class)->orderBy('created_at', 'asc'); } }