Appearance
composer require vigstudio/livewire-comments:^2.0
Requires Livewire ^4.0 and installs vigstudio/vgcomments ^2.0 as well.
vigstudio/vgcomments
^2.0
php artisan vendor:publish --tag=vgcomment-config php artisan vendor:publish --tag=vgcomment-assets php artisan vendor:publish --tag=vgcomment-assets-livewire
Optional view overrides:
php artisan vendor:publish --tag=vgcomment-views-livewire
After upgrades:
php artisan vendor:publish --tag=vgcomment-assets --force php artisan vendor:publish --tag=vgcomment-assets-livewire --force
Configure config/vgcomment.php first (especially moderation_users and connection), then:
config/vgcomment.php
moderation_users
connection
php artisan migrate php artisan optimize:clear
In your layout:
<head> ... @livewireStyles @commentStyles </head> <body> ... @livewireScripts @commentScripts </body>
Confirm files exist:
public/vendor/livewire-comments/css/comments.css public/vendor/livewire-comments/js/comments.js public/vendor/vgcomments/... # admin / shared backend assets
You do not need a separate Alpine CDN include for Livewire 4 (Alpine ships with Livewire).
Layout isolation
Only include @commentStyles / @commentScripts on comment pages — not on global guest/login layouts.
@commentStyles
@commentScripts
Usage
Livewire — Installation
Requires Livewire ^4.0 and installs
vigstudio/vgcomments^2.0as well.Publish
Optional view overrides:
After upgrades:
Migrate & clear
Configure
config/vgcomment.phpfirst (especiallymoderation_usersandconnection), then:Layout assets
In your layout:
Confirm files exist:
You do not need a separate Alpine CDN include for Livewire 4 (Alpine ships with Livewire).
Layout isolation
Only include
@commentStyles/@commentScriptson comment pages — not on global guest/login layouts.Next
Usage