class CommentPolicy (View source)

Methods

bool
create()

Any user can create a comment.

bool
edit(User $user, Comment $comment)

Users can edit their own comments. Users who can moderate a post can edit its comments.

bool
moderate(User $user, Comment $comment)

Users who can moderate a post can moderate its comments.

bool
react()

Any user can react to a comment.

Details

bool create()

Any user can create a comment.

Return Value

bool

bool edit(User $user, Comment $comment)

Users can edit their own comments. Users who can moderate a post can edit its comments.

Parameters

User $user
Comment $comment

Return Value

bool

bool moderate(User $user, Comment $comment)

Users who can moderate a post can moderate its comments.

Parameters

User $user
Comment $comment

Return Value

bool

bool react()

Any user can react to a comment.

Return Value

bool