By default, only the user that has created a comment may update or delete it. This behaviour is implemented using a policy that is included in the package: Spatie\LivewireComments\Policies\CommentPolicy
To modify the behaviour of the policy, you should create a class the extends the default policy. Let's assume you want to allow admins of your app to be able to update and delete comments by any user.
Next, you should add a policies key to the comments config file and set the comment key inside it to the class name of your policy
// copy the `policies` key to `config/comments.php`return [
'policies' => [
/*
* The class you want to use as the comment policy. It needs to be or
* extend `Spatie\LivewireComments\Policies\CommentPolicy`.
*/
'comment' => App\Policies\CustomCommentPolicy::class,
],
]