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

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

alibayat/laravel-commentable
============================

Implementing a Comment system for Laravel's Eloquent models.

187.8k↓34.6%3[1 PRs](https://github.com/AliBayat/Laravel-Commentable/pulls)PHP

Since May 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/AliBayat/Laravel-Commentable)[ Packagist](https://packagist.org/packages/alibayat/laravel-commentable)[ RSS](/packages/alibayat-laravel-commentable/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Commentable Package
===========================

[](#laravel-commentable-package)

This Package makes it easy to implement Commenting system for Eloquent's Models. just use the trait in the model and you're good to go.

### Requirements

[](#requirements)

- PHP 7.2+
- Laravel 7+

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

[](#installation)

```
composer require alibayat/laravel-commentable
```

#### Publish and Run the migrations

[](#publish-and-run-the-migrations)

```
php artisan vendor:publish --provider="AliBayat\LaravelCommentable\CommentableServiceProvider"
```

```
php artisan migrate
```

Laravel Commentable package will be auto-discovered by Laravel. and if not: register the package in config/app.php providers array manually.

```
'providers' => [
	...
	\AliBayat\LaravelCommentable\CommentableServiceProvider::class,
],
```

#### Setup models - just use the Trait in the Model.

[](#setup-models---just-use-the-trait-in-the-model)

```
