From e2703aad84973989a536bbcdeecd995e57debc23 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Sun, 22 Jul 2018 11:36:00 +0800 Subject: [PATCH] Use helper function `report` --- app/Http/Controllers/AuthController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Http/Controllers/AuthController.php b/app/Http/Controllers/AuthController.php index 98f657a8..d1fc8622 100644 --- a/app/Http/Controllers/AuthController.php +++ b/app/Http/Controllers/AuthController.php @@ -160,8 +160,7 @@ class AuthController extends Controller try { Mail::to($request->input('email'))->send(new ForgotPassword($url)); } catch (\Exception $e) { - // Write the exception to log - app(\Illuminate\Foundation\Exceptions\Handler::class)->report($e); + report($e); return json(trans('auth.mail.failed', ['msg' => $e->getMessage()]), 2); }