Level 104
The 422 status code and message is coming from your Laravel application; what is happening between dispatching the action and the Request hitting your API?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
{"message":"The given data was invalid.","errors":{"message":["The message field is required."]}}
Here is my created method, I just want to updated the updated_at date/time to today
created() {
this.commentRead = {
message: this.commentData.message,
firstName: this.commentData.firstName,
is_live: this.commentData.is_live,
updated_at: this.currentDateTime()
}
console.log('commentRead: ', this.commentRead)
let commentID = this.$route.params.comment_id
this.getCommentData();
this.$store.dispatch('comments/commentRead', { commentID }, this.commentRead )
}
Please or to participate in this conversation.