PHPackages                             filamerce/filament-comments - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. filamerce/filament-comments

ActiveLibrary

filamerce/filament-comments
===========================

Add comments to your Filament Resources.

2.0.1(1y ago)01.0k↓31.3%MITPHPPHP ^8.2

Since Jan 30Pushed 1y agoCompare

[ Source](https://github.com/filamerce/filament-comments)[ Packagist](https://packagist.org/packages/filamerce/filament-comments)[ Docs](https://github.com/filamerce/filament-comments)[ RSS](/packages/filamerce-filament-comments/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (12)Used By (0)

Filament Comments
=================

[](#filament-comments)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a144e613ef6a67e7f0439373205a063949b9174862fc54aba1f8748edcfee594/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66696c616d657263652f66696c616d656e742d636f6d6d656e74733f7374796c653d666c61742d737175617265)](https://packagist.org/packages/filamerce/filament-comments)[![Software License](https://camo.githubusercontent.com/df8ab1559ea74e35590be43130886f79f1fd42c07f0e8d0650dff99ed9bcc5cb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f66696c616d657263652f66696c616d656e742d636f6d6d656e74733f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/d9c53a702b6e9cee8c6c67877fe68898a098658919dd17eb960217e831e671ef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66696c616d657263652f66696c616d656e742d636f6d6d656e74733f7374796c653d666c61742d737175617265)](https://packagist.org/packages/filamerce/filament-comments)[![Stars](https://camo.githubusercontent.com/b459a693462abae14a3746b412e6efb0223e327205879492812ff7acfcb89d5a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f66696c616d657263652f66696c616d656e742d636f6d6d656e74733f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/b459a693462abae14a3746b412e6efb0223e327205879492812ff7acfcb89d5a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f66696c616d657263652f66696c616d656e742d636f6d6d656e74733f7374796c653d666c61742d737175617265)

Add comments to your Filament Resources.

This package is a fork of \[\] with merged Pull Requests and support of Laravel 12.

[![](https://github.com/filamerce/filament-comments/raw/main/assets/filament-comments.jpg)](https://github.com/filamerce/filament-comments/raw/main/assets/filament-comments.jpg)

Installation
------------

[](#installation)

Install the package via composer:

```
composer require filamerce/filament-comments
```

Publish and run the migrations:

```
php artisan vendor:publish --tag="filament-comments-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="filament-comments-config"
```

You can publish the language files with:

```
php artisan vendor:publish --tag="filament-comments-translations"
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="filament-comments-views"
```

Quickstart
----------

[](#quickstart)

### 1. Add model trait

[](#1-add-model-trait)

First open the eloquent model you wish to add Filament Comments to.

```
namespace App\Models;

use Filamerce\FilamentComments\Models\Traits\HasFilamentComments;

class Product extends Model
{
    use HasFilamentComments;
}
```

### 2. Add comments to Filament Resource

[](#2-add-comments-to-filament-resource)

There are 3 ways of using this plugin in your Filament Resources:

#### 1. Page actions

[](#1-page-actions)

Open the page where you want the comments action to appear, this will most likely be the `ViewResource` page.

Add the `CommentsAction` to the `getHeaderActions()` method.

```
