PHPackages                             newway-solutions/laravel-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. newway-solutions/laravel-comments

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

newway-solutions/laravel-comments
=================================

Add comments to your Laravel application

1.0.0(8mo ago)16MITPHPPHP ^8.1

Since Sep 7Pushed 8mo agoCompare

[ Source](https://github.com/New-Way-Solutions-MM/laravel-comment-package)[ Packagist](https://packagist.org/packages/newway-solutions/laravel-comments)[ Docs](https://github.com/New-Way-Solutions-MM/laravel-comment-package)[ RSS](/packages/newway-solutions-laravel-comments/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Comments
================

[](#laravel-comments)

[![Latest Version on Packagist](https://camo.githubusercontent.com/00a9df28c8abd006fbec4245746f275682cccce7c2cf18c849e37d6ffce0a217/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e65777761792d736f6c7574696f6e732f6c61726176656c2d636f6d6d656e74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/newway-solutions/laravel-comments)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/3a05a8b60940f18619f5be5e69ec8c78641e4a237f890364c97163883b90fbff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e65777761792d736f6c7574696f6e732f6c61726176656c2d636f6d6d656e74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/newway-solutions/laravel-comments)

A Laravel package that provides a simple and flexible commenting system for your Laravel application. Add comments to any Eloquent model with support for nested replies, comment approval, and event-driven notifications.

Features
--------

[](#features)

- 💬 Add comments to any Eloquent model
- 🔄 Nested comments and replies support
- ✅ Comment approval system
- 🎯 Polymorphic relationships
- 📡 Event-driven architecture
- 🔒 Flexible user authentication
- 🧪 Comprehensive test coverage
- 📦 Easy installation and configuration

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Laravel 10.0, 11.0, or 12.0

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

[](#installation)

You can install the package via composer:

```
composer require newway-solutions/laravel-comments
```

### Publish and Run Migrations

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

Publish the migration and run it:

```
php artisan vendor:publish --provider="NewWaySo\Comments\CommentsServiceProvider" --tag="migrations"
php artisan migrate
```

### Publish Configuration (Optional)

[](#publish-configuration-optional)

You can publish the config file with:

```
php artisan vendor:publish --provider="NewWaySo\Comments\CommentsServiceProvider" --tag="config"
```

This will publish a config file to `config/comments.php` where you can customize the package behavior.

Configuration
-------------

[](#configuration)

### Basic Configuration

[](#basic-configuration)

The configuration file allows you to customize several aspects:

```
