No manual steps required.
##Assets
The Blade component to load styles has been deprecated in favour of a new Blade directive:
- <x-comments::styles />
+ @laravelCommentsLivewireStyles
Previously we would load the EasyMDE plugin from the CDN, we have now bundled this with our own Javascript.
You should now also include this in your template with the new Blade directive:
@laravelCommentsLivewireScripts
##Mentions
Support for mentions has been added. You can enable/disable this feature in your comments.php
config file:
return [
'mentions' => [
'enabled' => true,
]
];
This feature will only work when using the EasyMDE editor.
v2 adds compatibility with Laravel 8 and Livewire 3.
##Remove scripts component & Alpine
The <x-comments::scripts />
component has been removed, you can remove this from your layout, Alpine is now included with Livewire by default, so this can be removed as well:
- <x-comments::scripts />
- <script src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>