diff --git a/the-basics/view-models.md b/the-basics/view-models.md index edbc6c7..1b36cff 100644 --- a/the-basics/view-models.md +++ b/the-basics/view-models.md @@ -230,7 +230,7 @@ class MediaCardsViewModel extends ViewModel */ public function toArray(): array { - return $this->cards(); + return $this->cards->toArray(); } } ```