codewithren/laracommentify 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Publish Views (Optional)

    php artisan vendor:publish --tag=views --provider="CodeWithRen\LaraCommentify\LaraCommentifyProvider"

  2. 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

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-06-08