for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Chriscreate\Blog;
use Chriscreate\Blog\Traits\Comment\CommentApproval;
use Chriscreate\Blog\Traits\Comment\CommentScopes;
use Chriscreate\Blog\Traits\IsAuthorable;
use Illuminate\Database\Eloquent\Model;
class Comment extends Model
{
use CommentScopes,
CommentApproval,
IsAuthorable;
protected $table = 'comments';
protected $primaryKey = 'id';
public $guarded = [];
public $timestamps = true;
public function commentable()
return $this->morphTo();
}