From 4681973a0e9b51a37cea3e66502636f4be9c4854 Mon Sep 17 00:00:00 2001 From: Junior Grossi Date: Fri, 26 Oct 2018 22:58:16 -0200 Subject: [PATCH] Fix typo in taxonomy doc section --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ed59c2de..2b9d2509 100644 --- a/README.md +++ b/README.md @@ -506,7 +506,7 @@ to achieve it. ```php // all categories -$cat = Taxonomy::category()->slug('uncategorized')->posts()->first(); +$cat = Taxonomy::category()->slug('uncategorized')->posts->first(); echo "
"; print_r($cat->name); echo "
"; // only all categories and posts connected with it @@ -516,7 +516,7 @@ $cat->each(function($category) { }); // clean and simple all posts from a category -$cat = Category::slug('uncategorized')->posts()->first(); +$cat = Category::slug('uncategorized')->posts->first(); $cat->posts->each(function($post) { echo $post->post_title; });