modularavel/commentable

A Laravel Blade Livewire package for threaded comments with replies

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/modularavel/commentable

1.0.0 2025-10-17 10:12 UTC

This package is auto-updated.

Last update: 2025-10-17 10:15:39 UTC


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