PHPackages                             alfonsobries/laravel-commentable - 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. alfonsobries/laravel-commentable

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

alfonsobries/laravel-commentable
================================

A Laravel package to add comments to any model

0.0.2(3y ago)012MITPHPPHP ^8.0

Since Oct 10Pushed 3y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

Laravel Commentable
===================

[](#laravel-commentable)

A Laravel package to add comments to any model

[![Stable Version](https://camo.githubusercontent.com/20ea4cff4c7ec1a4b9aeb2b9fd4bf6c82f934fec8d67a6e3ff06a3fcf6071e2c/687474703a2f2f706f7365722e707567782e6f72672f616c666f6e736f62726965732f6c61726176656c2d636f6d6d656e7461626c652f76)](https://packagist.org/packages/alfonsobries/laravel-commentable) [![License](https://camo.githubusercontent.com/29318a5e73642aeb4bb5a5cb24bb45273409eaf8f08839c83ddb099e8e935abb/687474703a2f2f706f7365722e707567782e6f72672f616c666f6e736f62726965732f6c61726176656c2d636f6d6d656e7461626c652f6c6963656e7365)](https://packagist.org/packages/alfonsobries/laravel-commentable) [![PHP Version Require](https://camo.githubusercontent.com/e554aad187049b08b855964e14eb0071b443b3e6cd7041ff45c1fe8b456e3f51/687474703a2f2f706f7365722e707567782e6f72672f616c666f6e736f62726965732f6c61726176656c2d636f6d6d656e7461626c652f726571756972652f706870)](https://packagist.org/packages/alfonsobries/laravel-commentable)

Use
---

[](#use)

### Installation

[](#installation)

1. Install the composer package:

```
composer require alfonsobries/laravel-commentable
```

2. Publish the database migration

```
php artisan vendor:publish --provider="Alfonsobries\LaravelCommentable\LaravelCommentableServiceProvider" --tag="migrations"
```

3. Optionally publish the config file

```
php artisan vendor:publish --provider="Alfonsobries\LaravelCommentable\LaravelCommentableServiceProvider" --tag="config"
```

4. Configure the model that is going to receive the comments with the `CommentableInterface` contract and add the `Commentable` trait.

```
