Skip to main content

Usage

  1. Register the assets
php artisan filament:assets
  1. In your User model implement the Commenter interface.
use Kirschbaum\Commentions\Contracts\Commenter;

class User extends Model implements Commenter
{
// ...
}
  1. In the model you want to add comments, implement the Commentable interface and the HasComments trait.
use Kirschbaum\Commentions\HasComments;
use Kirschbaum\Commentions\Contracts\Commentable;

class Project extends Model implements Commentable
{
use HasComments;
}