modularavel/commentable 问题修复 & 功能扩展

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

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

modularavel/commentable

最新稳定版本:1.0.1

Composer 安装命令:

composer require modularavel/commentable

包简介

A Laravel Blade Livewire package for threaded comments with replies

README 文档

README

A Laravel Blade Livewire package for threaded comments with nested replies.

Screenshots

Comment Thread

Comment Form

Nested Replies

Threaded Comments with Nested Replies and Real-time Updates with Livewire Threads

Installation

composer require modularavel/commentable

Publish Migrations

php artisan vendor:publish --tag=commentable-migrations

Publish Configuration

php artisan vendor:publish --tag=commentable-config

Publish Assets

php artisan vendor:publish --tag=commentable-assets

Publish Languages

php artisan vendor:publish --tag=commentable-lang

Publish Blade Views

php artisan vendor:publish --tag=commentable-views

Run Migrations

php artisan migrate

Usage

In Your Blade View

<livewire:comment-thread :commentable="$post" />

Make Your Model Commentable

use Modularavel\Commentable\Traits\HasModularavelCommentable;

class Post extends Model
{
    use HasModularavelCommentable;
}

Configuration

Edit config/modularavel/commentable.php to customize:

  • User model
  • Pagination settings
  • Moderation options
  • Display preferences

Features

  • Nested comment replies
  • Real-time updates with Livewire
  • User authentication integration
  • Edit and delete comments
  • Customizable views
  • Pagination support
  • Markdown support (optional)

License

MIT

Test

composer test

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固