Skip to content

Commit

Permalink
Merge pull request #6 from dsone/dsone-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
mohamednagy authored Jun 6, 2019
2 parents 497d6fe + 27a7a20 commit 3f5180f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ Laravel package that allows you to **rate, like & dislike or vote up & down** y
## Rating
include `CanRate` trait into your user model to apply rating functionalties
```
use Nagy\LaravelRating\Traits\CanRate;
use Nagy\LaravelRating\Traits\Rate\CanRate;
class User extends Model
{
use CanRate;
```
include `Rateable` trait to your model that will be rateable
```
use Nagy\LaravelRating\Traits\Rateable;
use Nagy\LaravelRating\Traits\Rate\Rateable;
class Post extends Model
{
Expand Down Expand Up @@ -56,15 +56,15 @@ $user->rated(); // returns a collection of rated models
## Voting
include `CanVote` trait into your user model to apply rating functionalties
```
use Nagy\LaravelRating\Traits\CanVote;
use Nagy\LaravelRating\Traits\Vote\CanVote;
class User extends Model
{
use CanVote;
```
include `Votable` trait to your model that will be votable
```
use Nagy\LaravelRating\Traits\Votable;
use Nagy\LaravelRating\Traits\Vote\Votable;
class Post extends Model
{
Expand Down Expand Up @@ -109,15 +109,15 @@ $user->voted(); // returns a collection of total voted models;
## Like & Dislike
include `CanLike` trait into your user model to apply like and dislike functionalties
```
use Nagy\LaravelRating\Traits\CanLike;
use Nagy\LaravelRating\Traits\Like\CanLike;
class User extends Model
{
use CanLike;
```
include `Likeabke` trait to your model that will be likeabke
```
use Nagy\LaravelRating\Traits\Likeabke;
use Nagy\LaravelRating\Traits\Like\Likeable;
class Post extends Model
{
Expand Down

0 comments on commit 3f5180f

Please sign in to comment.