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)