githubEdit

๐Ÿ”จInstallation

Step 1 :

composer require lakm/laravel-comments -W

Step 2 :

php artisan commenter:install

Step 3 :

Include styles in your layout.

<html>
    <head>
        @commentsStyles
    </head>
</html>
circle-info

To avoid CSS name conflicts, we recommend adding your styles to the end of the head tag.

Include scripts in your layout

<html>
    <body>
        @commentsScripts
    </body>
</html>

Manually including Livewire's frontend assets

If you manually include livewire frontend (documentationarrow-up-right) assets make sure @commentsStyles is included before @livewireStyles and@commentsScripts is included before the @livewireScripts

Manually bundling Livewire and Alpine

If you manually bundle livewire frontend (documentationarrow-up-right) assets make sure @commentsStyles is included before @livewireStyles and@commentsScripts is included before the script that includes livewire bundle.

circle-info

To improve performance we recommend adding script at the end of the body tag.

Optionally you can publish the views using below command,

Last updated