Laravel 4를 처음 접했고 Ardent를 살펴 보았습니다. 검증을 통해 속도면에서 정말 좋은 패키지 인 것 같습니다. 따라서 규칙을 설정하고 데이터베이스에 데이터를 삽입하는 방법을 이해하지만 유효성 검사가 실패 할 때 오류 메시지를 표시하는 방법을 찾을 수 없습니다.Ardent를 사용하여 Laravel 4에서 오류 메시지를받는 방법
$comment = new Post_comment();
$comment->id_poster = Input::get('id_poster');
$comment->like = "ciao";
$comment->text = Input::get('text');
$comment->id_post = Input::get('post_id');
if ($comment->save()) {
$status = "success";
} else {
$status = $comment->Ardent->errors()->all(); // this not working
}
echo json_encode(array('status' => $status));
설명해 주셔서 감사합니다. – Fabrizio