Use helper function report
This commit is contained in:
parent
5a9c9a6d3a
commit
e2703aad84
@ -160,8 +160,7 @@ class AuthController extends Controller
|
|||||||
try {
|
try {
|
||||||
Mail::to($request->input('email'))->send(new ForgotPassword($url));
|
Mail::to($request->input('email'))->send(new ForgotPassword($url));
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
// Write the exception to log
|
report($e);
|
||||||
app(\Illuminate\Foundation\Exceptions\Handler::class)->report($e);
|
|
||||||
|
|
||||||
return json(trans('auth.mail.failed', ['msg' => $e->getMessage()]), 2);
|
return json(trans('auth.mail.failed', ['msg' => $e->getMessage()]), 2);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user