Download the PHP package sohrab-az/laravel-comment without Composer
On this page you can find all versions of the php package sohrab-az/laravel-comment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sohrab-az/laravel-comment
More information about sohrab-az/laravel-comment
Files in sohrab-az/laravel-comment
Download sohrab-az/laravel-comment
More information about sohrab-az/laravel-comment
Files in sohrab-az/laravel-comment
Vendor sohrab-az
Package laravel-comment
Short Description A flexible comment package for Laravel
License MIT
Package laravel-comment
Short Description A flexible comment package for Laravel
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-comment
๐ฆ Laravel Comment Package
A lightweight and flexible comment system for Laravel with support for nested replies, polymorphic relations, and status workflow.
โจ Features
- Nested comments (threaded replies)
- Polymorphic support (commentable)
- User or guest commenting
- Status workflow (pending, approved, rejected)
- Configurable max reply depth
- Clean service layer (CommentManager, CommentQuery)
- Fluent query builder for comments
- Simple trait integration
๐ฆ Installation
Install via Composer:
โ๏ธ Publish Config & Migrations
โ๏ธ Configuration
config/comment.php
๐ง Usage
Add Trait to your Model
๐ฌ Creating Comments
Create comment
Guest comment
๐ Reply to a Comment
๐ Query Comments
Pagination
๐งพ Comment Status
โ๏ธ Approve / Reject
๐งน Delete Comment (with descendants)
๐งฑ Database Structure
The package creates a comments table with:
- Polymorphic relation (
commentable) - Optional author morph (
author) - Nested set support (tree structure)
- Status management
- Soft-style timestamps
๐ง Architecture
CommentManagerโ write operations (create, reply, approve, reject, delete)CommentQueryโ read/query layerHasCommentsโ model integration layerCommentโ core entity modelNestedSetโ tree handling (Kalnoy package)
๐ Example
๐ Requirements
- PHP 8.1+
- Laravel 10+
๐ License
MIT License. Use freely in personal and commercial projects.
All versions of laravel-comment with dependencies
PHP Build Version
Package Version
Requires
kalnoy/nestedset Version
^7.0
The package sohrab-az/laravel-comment contains the following files
Loading the files please wait ...