Laravel 5.1 앱에서 내 프론트 엔드 각도 앱으로 오류를 보내려고합니다. 던져진 오류는 내가 필요로하는 실제 상태 메시지, 반환되지 않습니다Laravel 5 반환하지 않음 오류 메시지
if (Hash::check($updated_profile['current_password'], $user->password)) {
$user->password = Hash::make($updated_profile['new_password']);
return $user;
} else {
abort(500, 'Passwords do not match');
}
을 나는 또한 모두 들어 throw new \Exception('Passwords do not match');
을 시도했습니다, 나는 프론트 엔드에 오류가 있지만, 상태 메시지를 실종 :
Object
data: null
headers:(name)
status: 0
statusText:""
__proto__: Object
같은이 기능을 사용할 수 있습니까? –
oauth2 패키지로 포장 중입니다. – Growler