Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Commit

Permalink
Merge pull request #50 from mohammad6006/patch-1
Browse files Browse the repository at this point in the history
use CanComment
  • Loading branch information
ShortlyMAB authored Aug 27, 2019
2 parents 9352412 + 901d8d0 commit 0e72086
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 @@ -46,6 +46,14 @@ Add `CanComment` trait to your User model.

``` php
use Actuallymab\LaravelComment\CanComment;

class User extends Model
{
use CanComment;

// ...
}

```

Add `Commentable` interface and `HasComments` trait to your commentable model(s).
Expand Down

0 comments on commit 0e72086

Please sign in to comment.