getKey() === $comment->commenter_id && $user->getMorphClass() === $comment->commenter_type; } public function delete(Authenticatable $user, Comment $comment): bool { return $user->getKey() === $comment->commenter_id && $user->getMorphClass() === $comment->commenter_type; } public function reply(Authenticatable $user, Comment $comment): bool { return $comment->canReply(); } }