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
  • Views
  • Assets
  • Build assets

Was this helpful?

Edit on GitHub
  1. Advance

Customization

Views

You can customize all the views by publishing them using below commands,

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

Assets

Package install command commenter:install, publish assets to the \public\vendor\lakm\laravel-comments directory.

Here is the command to publish them manually.

    php artisan vendor:publish --tag=comments-assets

Build assets

You can build assets using any assets building tool. By default, package has used laravel vite plugin. Make sure to use right build directory public\vendor\lakm\laravel-comments\build

When building assets the re should be only one input file and that is should be app.js. You can do that as following using vite.

// vite.config.js

import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';

export default defineConfig({
   plugins: [
       laravel({
           hotFile: 'public/vendor/lakm/laravel-comments/comments.hot',
           buildDirectory: 'vendor/lakm/laravel-comments/build', // This is important
           input: ['resources/js/app.js'], // This is important
           refresh: true,
       }),
   ],
});
PreviousLocalizationNextTesting

Last updated 7 months ago

Was this helpful?

🛟