Skip to content

Commit

Permalink
add new method in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
FreedomKnight committed Jun 26, 2018
1 parent aea8d95 commit ab94965
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ab94965

Please sign in to comment.