From 57b7686fa994505d43b9ebcfc1763530267ab6a1 Mon Sep 17 00:00:00 2001 From: Ruben Van Assche Date: Fri, 3 May 2024 11:58:31 +0200 Subject: [PATCH] Update docs --- docs/as-a-resource/lazy-properties.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/as-a-resource/lazy-properties.md b/docs/as-a-resource/lazy-properties.md index 7464f0e2..bf5087ea 100644 --- a/docs/as-a-resource/lazy-properties.md +++ b/docs/as-a-resource/lazy-properties.md @@ -241,7 +241,7 @@ class AlbumData extends Data public function includeProperties(): array { return [ - 'songs' => count($this->songs) > 0, + 'songs' => $this->title === 'Together Forever', ]; } } @@ -264,7 +264,7 @@ class AlbumData extends Data public function includeProperties(): array { return [ - 'songs.title' => count($this->songs) > 0, + 'songs.title' => $this->title === 'Together Forever', ]; } }