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); } }