Laravel 12 / 13 · Livewire 4
Install Commentify.
Four steps to a comment thread on any Eloquent model. Then open this demo and flip the same switches in the playground.
-
1. Require the package
composer require usamamuneerchaudhary/commentify
Livewire 4 and Flux install with it. PHP 8.2+ and Laravel 12 or 13.
-
2. Publish config and migrate
php artisan vendor:publish --tag=commentify-config php artisan migrate
That creates the comments, likes, and reports tables and a
config/commentify.phpfile. -
3. Make a model commentable
use Usamamuneerchaudhary\Commentify\Traits\Commentable; class Post extends Model { use Commentable; } -
4. Drop the thread on the page
<livewire:comments :model="$post" />
That is the whole integration. Guests, markdown, likes, and reports are config flags after this.
Commentify Pro
The JSON API, React and Vue SDKs, spam pipeline, Filament queue, guest comments, GIFs, and webhooks ship with Pro. This public demo runs the Livewire UI from the free package so you can try the thread before you buy.
Want the same steps with a live thread underneath? The docs page has comments on it.