From c451fde466660e00699902e98e77def21cf3ee67 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 12 Nov 2020 14:27:59 -0800 Subject: [PATCH] Fixed exception namespace --- app/Http/Controllers/Api/SettingsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/SettingsController.php b/app/Http/Controllers/Api/SettingsController.php index 71741bb6ad..deb14fb5ff 100644 --- a/app/Http/Controllers/Api/SettingsController.php +++ b/app/Http/Controllers/Api/SettingsController.php @@ -137,7 +137,7 @@ class SettingsController extends Controller try { Notification::send(Setting::first(), new MailTest()); return response()->json(['message' => 'Mail sent to '.config('mail.reply_to.address')], 200); - } catch (Exception $e) { + } catch (\Exception $e) { return response()->json(['message' => $e->getMessage()], 500); } }