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,
],

Last updated