beyondcode/laravel-comments

Extend comments model

Closed this issue · 1 comments

I'd like to override your comments model with my own, so that I may add some additional data when creating comments, either through setters, etc. What is the best approach to doing this?

I did it this way

namespace App;

use BeyondCode\Comments\Comment as CommentSystem;
use Other\Trait\Name as NewTrait;

class Comment extends CommentSystem
{
    use NewTrait;
}