PHPackages                             fiachehr/laravel-comments-pro - 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. fiachehr/laravel-comments-pro

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

fiachehr/laravel-comments-pro
=============================

Production-ready comments system for Laravel: nested threads, reactions, guest &amp; user support, polymorphic models, moderation, rate limiting

v0.1.6(3mo ago)4360MITPHPPHP ^8.1

Since Oct 3Pushed 3mo agoCompare

[ Source](https://github.com/fiachehr/laravel-comments-pro)[ Packagist](https://packagist.org/packages/fiachehr/laravel-comments-pro)[ Docs](https://github.com/fiachehr/laravel-comments-pro)[ RSS](/packages/fiachehr-laravel-comments-pro/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (21)Versions (8)Used By (0)

Laravel Comments Pro
====================

[](#laravel-comments-pro)

A comprehensive, feature-rich comments system for Laravel applications with support for nested comments, reactions, guest users, and advanced moderation features.

📖 Documentation (fiachehr.ir)
-----------------------------

[](#-documentation-fiachehrir)

Full guide with examples and IDE-style code blocks: **[Laravel Comments Pro — Documentation](https://fiachehr.ir/docs/laravel-comments-pro.html)**

📋 Requirements
--------------

[](#-requirements)

### PHP Version

[](#php-version)

- **PHP &gt;= 8.1** (Required)
- **PHP 8.1, 8.2, 8.3, 8.4** (Supported)

### Laravel Version

[](#laravel-version)

- **Laravel 10.x** (LTS)
- **Laravel 11.x**
- **Laravel 12.x**

### Compatibility Matrix

[](#compatibility-matrix)

PHP VersionLaravel 10.xLaravel 11.xLaravel 12.x8.1✅ Supported——8.2✅ Supported✅ Supported✅ Supported8.3✅ Supported✅ Supported✅ Supported8.4✅ Supported✅ Supported✅ SupportedLaravel 11 and 12 require PHP 8.2 or higher. Use PHP 8.1 only with Laravel 10.

### Framework Dependency

[](#framework-dependency)

⚠️ **This package is Laravel-specific** and requires:

- **Eloquent ORM** - Database models and relationships
- **Laravel Facades** - Service access layer
- **Laravel Service Providers** - Package registration
- **Laravel Events** - Event system integration
- **Laravel Migrations** - Database schema management
- **Laravel Artisan** - Command-line interface

**Not compatible with other frameworks** (Symfony, CodeIgniter, etc.)

✨ Features
----------

[](#-features)

- **Nested Comments** - Unlimited depth with configurable limits
- **Reactions System** - Like/Dislike functionality with statistics
- **Guest Support** - Allow anonymous users to comment
- **Moderation Tools** - Approve/reject comments with status management
- **Event System** - Fire events for comment creation, approval, and reactions
- **Tree Structure** - Convert flat comments to hierarchical tree
- **Guest Fingerprinting** - Track guest users without authentication
- **Bulk Operations** - Handle multiple comments and reactions efficiently
- **Popular Comments** - Get trending comments based on reactions
- **Soft Deletes** - Safe comment deletion with recovery options
- **Factory Support** - Built-in factories for testing
- **Comprehensive Testing** - Full test suite included

📦 Installation
--------------

[](#-installation)

### Prerequisites

[](#prerequisites)

Before installing, ensure you have:

- **PHP &gt;= 8.1** (PHP **8.2+** for Laravel 11 or 12)
- **Laravel 10, 11, or 12**
- **Composer** installed

### 1. Install via Composer

[](#1-install-via-composer)

```
composer require fiachehr/laravel-comments-pro
```

> **Note:** This package requires Laravel framework and is not compatible with other PHP frameworks.

### 2. Publish and Run Migrations

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

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

### 3. Publish Configuration

[](#3-publish-configuration)

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

🚀 Quick Start
-------------

[](#-quick-start)

### 1. Add Trait to Any Model

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

```
