$object->getCommenterId(), 'content' => $object->getContent(), ]; } /** * @return array */ protected function rules(): array { return [ 'commenter_id' => 'required', 'content' => 'required', ]; } /** * @return array */ protected function messages(): array { return []; } }