Skip to content

Commit b5891d6

Browse files
author
FreedomKnight
committed
update readme
1 parent bd77c56 commit b5891d6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,22 @@ $post->recategorize(1, "news");
8787
### hasCategories
8888

8989
You can find model which has specify categories
90+
it also search all children category
91+
92+
```php
93+
Post::hasCategories('News', 1)->get();
94+
```
95+
96+
### hasStrictCategories
97+
98+
It's same as hasCategories but just find category which you specify
99+
100+
```php
101+
Post::hasStrictCategories('News', 1)->get();
102+
```
103+
104+
You can find model which has specify categories
105+
it also search all children category
90106

91107
```php
92108
Post::hasCategories('News', 1)->get();

0 commit comments

Comments
 (0)