alen.dr2382
Hello, You have bug in Componentes/Comments.php in line 238 when you check: if($user = Auth::getUser()){
You have defined as:
if($user = Auth::getUser()){
$this->user_id = $user->id;
$this->author_name = $user->name . ' ' . $user->surname;
$this->author_email = $user->email;
}
But should be:
if($user = Auth::getUser()){
$this->comment->user_id = $user->id;
$this->comment->author_name = $user->name . ' ' . $user->surname;
$this->comment->author_email = $user->email;
}
So you wont get error: {"X_OCTOBER_ERROR_FIELDS":{"author_name":["The author name field is required."],"author_email":["The author email field is required."]},"X_OCTOBER_ERROR_MESSAGE":"The author name field is required."}
Last updated
1-5 of 5