From ab949656f6703cc5370513664fb1f9e030056edf Mon Sep 17 00:00:00 2001 From: FreedomKnight Date: Tue, 26 Jun 2018 10:31:28 +0800 Subject: [PATCH] add new method in readme --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 89e4882..20bfe5d 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,14 @@ $post->recategorize(1, "news"); ``` +### hasCategories + +You can find model which has specify categories + +```php +Post::hasCategories('News', 1)->get(); +``` + ## Change log