Usage
- Register the assets
php artisan filament:assets
- In your
Usermodel implement theCommenterinterface.
use Kirschbaum\Commentions\Contracts\Commenter;
class User extends Model implements Commenter
{
// ...
}
- In the model you want to add comments, implement the
Commentableinterface and theHasCommentstrait.
use Kirschbaum\Commentions\HasComments;
use Kirschbaum\Commentions\Contracts\Commentable;
class Project extends Model implements Commentable
{
use HasComments;
}