codewithren/laracommentify
Composer 安装命令:
composer require codewithren/laracommentify
包简介
This is reusable commenting system developed in laravel livewire for enhanching developing process
关键字:
README 文档
README
A reusable comment system for Laravel 12 and Livewire 3, built for rapid development and clean architecture. 📦 Installation
Install the package via Composer:
composer require codewithren/laracommentify:dev-main --with-all-dependencies
If you encounter a stability error, update your composer.json:
"minimum-stability": "dev",
"prefer-stable": true
⚙️ Setup
-
Publish Views (Optional)
php artisan vendor:publish --tag=views --provider="CodeWithRen\LaraCommentify\LaraCommentifyProvider"
-
Run Migrations
php artisan migrate
🧩 Usage
In your Blade view, include the comment component and pass in the commentable model (e.g., Post, Article, etc.):
<livewire:comments :model="$post" />
Make sure your model uses the Commentable trait:
use CodeWithRen\LaraCommentify\Traits\Commentable;
class Post extends Model
{
use Commentable;
}
🛠 Components Component Description <livewire:comments /> Displays all comments for a model <livewire:single-comment /> Renders a single comment with replies <livewire:like-comment /> Handles like/unlike functionality ✅ Requirements
PHP 8.3+
Laravel 12+
Livewire 3+
👤 Author
Developed by Renish Siwakoti
GitHub: github.com/Renish437/laracommentify
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-06-08