From a3e5c061392bdb18cc19f411a2e863d1038b675b Mon Sep 17 00:00:00 2001 From: Danny Cooper Date: Wed, 1 Nov 2023 16:10:18 +0000 Subject: [PATCH] Update README.md (#528) Clarify the what the different examples are doing. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 9a9b80d..f9713a4 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,10 @@ class Post extends Model implements Sitemapable { public function toSitemapTag(): Url | string | array { + // Simple return: return route('blog.post.show', $this); + + // Return with fine-grained control: return Url::create(route('blog.post.show', $this)) ->setLastModificationDate(Carbon::create($this->updated_at)) ->setChangeFrequency(Url::CHANGE_FREQUENCY_YEARLY)