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
  • Enable/Disable Comments Approval
  • Enable/Disable replies approval

Was this helpful?

Edit on GitHub
  1. Configuration

Approval

When enabled only approved comments will be displayed. To approve a comment "approved" column must be set to true (by default false) in comments table.

Enable/Disable Comments Approval

Locally

Set approvalRequired property true to enable.

use LakM\Comments\Concerns\Commentable;

class Post extends Model
{
    use Commentable;
    
    $approvalRequired = true; // This will enable comments approval
}

Globally

Set approval_required true to globally enable.

// comments.php
"approval_required" => true,

Enable/Disable replies approval

Set reply.approval_required true to globally enable.

// comments.php
"reply" => [
    "approval_required" => true,
],
PreviousReactionsNextValidations

Last updated 7 months ago

Was this helpful?

⛔