> For the complete documentation index, see [llms.txt](https://lakm.gitbook.io/commenter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lakm.gitbook.io/commenter/configuration/approval.md).

# Approval

### Enable/Disable Comments Approval

#### Locally

Set `approvalRequired` property true to enable.

```php
use LakM\Commenter\Concerns\Commentable;

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

#### Globally

Set `approval_required` true to globally enable.

```php
// commenter.php
"approval_required" => true,
```

### Enable/Disable replies approval

Set `reply.approval_required` true to globally enable.

```php
// commenter.php
"reply" => [
    "approval_required" => true,
],
```
