VgComments 2.x
Laravel comments stack: a core backend plus optional UI packages.
Live demo: vgcomment.nghiane.com
Packages
| Package | Role | Current |
|---|---|---|
vigstudio/vgcomments | REST API, DB, moderation admin, validation | ^2.0 |
vigstudio/blade-comments | Blade + vanilla JS UI (recommended) | ^2.0 |
vigstudio/livewire-comments | Livewire 4 UI | ^2.0 |
Install one UI package (or call the API yourself). Both UIs depend on vgcomments ^2.0.
Line 1.x remains on Packagist for existing apps; new projects should use 2.0.
Requirements
- PHP
^8.2 - Laravel
^10|^11|^12|^13 - Livewire
^4.0only if you use Livewire Comments
Features
- Comments by
page_idand/or Eloquent morph models - Guest or authenticated authors
- Nested replies, reactions, reports
- File attachments
- Markdown (s9e/TextFormatter)
- reCAPTCHA v3, StopForumSpam, optional NSFW image check
- Admin dashboard + runtime settings (
/{prefix}/admin)
Quick start
bash
# Recommended — Blade UI (no Livewire required)
composer require vigstudio/blade-comments:^2.0
# Option B — Livewire 4 UI
composer require vigstudio/livewire-comments:^2.0Then publish config/assets, migrate, and drop a component into a Blade view. See:
Architecture
Your app view
│
├─ Blade box + JS ──► HTTP REST API ──► CommentService / DB
│
└─ Livewire component ──► CommentService / DB
│
Admin panelLayout isolation
Load @commentBladeStyles / @commentStyles only on pages that render comments — do not put package CSS in global guest/login layouts.
Links
- Demo app: vigstudio/vgcomment-demo
- Docs source: vigstudio/vgcomment-docs