Commenter
GitHubAdmin Panel
v1
v1
  • 😍Commenter
  • Overview
    • 💡Why Commentor
    • 🗞️Articles
    • ✨Key Features
    • 🤖Technologies
  • Basics
    • 🧠Concept
    • ®️Requirements
    • 🔨Installation
    • ✈️Usage
    • 🌈Themes
  • Demo
    • 👩‍🏫Project
    • 📺Basic Demo Video
    • 📼Full Demo Video
  • Configuration
    • 🇩🇴Publish Config
    • ⚖️Change Mode
    • 🔐Authorization
    • ⏲️Limit comments per user
    • 😍Reactions
    • ⛔Approval
    • 🚧Validations
    • Sorting
    • 🛠️Other Options
  • Advance
    • 🔏Security
    • 🚀Performance
    • ⚡Events
    • 🌍Localization
    • 🛟Customization
    • 🕵️Testing
  • 🛣️Roadmap
Powered by GitBook
On this page
  • Option 1 (Locally, Higher priority)
  • Option 2 (Globally)

Was this helpful?

Edit on GitHub
  1. Configuration

Change Mode

By default Guest Mode has enabled.

Option 1 (Locally, Higher priority)

Set $guestMode, true in related model. This will effect to that model only.

use Illuminate\Database\Eloquent\Model;
use LakM\Comments\Concerns\Commentable;
use LakM\Comments\Contracts\CommentableContract;

class Post extends Model implements CommentableContract
{
    use Commentable;

    $guestMode = false; // Auth mode
}

Option 2 (Globally)

You can set guest mode enabled variable true in the config file. This will globally enabled the guest mode.

// comments.php

guest_mode => [
    'enabled' => false, // Auth Mode
]
PreviousPublish ConfigNextAuthorization

Last updated 9 months ago

Was this helpful?

⚖️