Extend comments model
Closed this issue · 1 comments
dambridge commented
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?
mreduar commented
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;
}