complete story 4.2 with qa tests

This commit is contained in:
Naser Mansour
2025-12-27 00:30:38 +02:00
parent e669e97ca1
commit 435b1c6c2e
21 changed files with 1495 additions and 40 deletions
+2 -2
View File
@@ -35,10 +35,10 @@ class Timeline extends Model
}
/**
* Get the updates for the timeline.
* Get the updates for the timeline, ordered chronologically (oldest first).
*/
public function updates(): HasMany
{
return $this->hasMany(TimelineUpdate::class);
return $this->hasMany(TimelineUpdate::class)->orderBy('created_at', 'asc');
}
}