PHPackages                             osantelices/filamentphp-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. osantelices/filamentphp-comments

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

osantelices/filamentphp-comments
================================

Add comments to your Filament Resources.

01PHP

Since Feb 5Pushed 1y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#filament-comments)

[![Latest Version on Packagist](https://camo.githubusercontent.com/bba384c6377e965b7e8c9ff08eef70c19895bbacee2d867b6beacb24bf80ebfc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706172616c6c61782f66696c616d656e742d636f6d6d656e74733f7374796c653d666c61742d737175617265)](https://packagist.org/packages/parallax/filament-comments)[![Software License](https://camo.githubusercontent.com/e49229a8f7275c19b79bcc474f4d87761bfcbf44473a8c821df752b9bc09eade/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f706172616c6c61782f66696c616d656e742d636f6d6d656e74733f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/ebde7eed11acca769f2958125bfd7130461b5a7c32b6c7a74abe8c1f0f11130d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706172616c6c61782f66696c616d656e742d636f6d6d656e74733f7374796c653d666c61742d737175617265)](https://packagist.org/packages/parallax/filament-comments)[![Stars](https://camo.githubusercontent.com/b8f7f1fd17922c25b3a6095d09fcf8d9ee8d5f74e1d2f5275a6049b3985388d3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f706172616c6c61782f66696c616d656e742d636f6d6d656e74733f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/b8f7f1fd17922c25b3a6095d09fcf8d9ee8d5f74e1d2f5275a6049b3985388d3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f706172616c6c61782f66696c616d656e742d636f6d6d656e74733f7374796c653d666c61742d737175617265)

Add comments to your Filament Resources.

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

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

[](#installation)

Install the package via composer:

```
composer require parallax/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 Parallax\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.

```
