Commenter
GitHubAdmin Panel
v2
v2
  • 😍Commenter
  • Overview
    • 💡Why Commenter
    • 🗞️Articles
    • ✨Key Features
    • 🤖Technologies
  • Basics
    • 🧠Concept
    • ®️Requirements
    • 🔨Installation
    • ✈️Usage
    • 🌈Themes
  • Demo
    • 👩‍🏫Project
    • 📺Basic Demo Video
    • 📼Full Demo Video
  • Configuration
    • 📜Publish Config
    • Migrations/Tables
    • ⚖️Change Mode
    • 🔐Authorization
    • ⏲️Limit comments per user
    • 😍Reactions
    • ⛔Approval
    • 🚧Validations
    • Sorting
    • 🛠️Other Options
  • Advance
    • 🔏Security
    • 🚀Performance
    • ⚡Events
    • 🌍Localization
    • 🛟Customization
    • 🕵️Testing
  • 🛣️Roadmap
  • 💓Sponsor
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Basics

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>

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

<html>
    <head>
        @commentsStyles
        @livewireStyles
    </head>
    <body>
        @commentsScripts
        @livewireScripts
    </body>
</html>

Manually bundling Livewire and Alpine

<html>
<head>
    @commentsStyles
    @livewireStyles
    
    @commentsScripts
    @vite(['resources/js/app.js'])
</head>
<body>
    {{ $slot }}
 
    @livewireScriptConfig 
</body>
</html>

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

Optionally you can publish the views using below command,

php artisan vendor:publish --tag=comments-views
PreviousRequirementsNextUsage

Last updated 5 months ago

Was this helpful?

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

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

🔨
documentation
documentation