From 7e80f4de2e5be030597289385617b3e865c48ced Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 15 Nov 2016 10:39:35 +0200 Subject: [PATCH] Fix subscription JSON response --- app/Http/Controllers/IntegrationController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/IntegrationController.php b/app/Http/Controllers/IntegrationController.php index a55498db8f43..cb1a905f3775 100644 --- a/app/Http/Controllers/IntegrationController.php +++ b/app/Http/Controllers/IntegrationController.php @@ -38,6 +38,6 @@ class IntegrationController extends Controller return Response::json('Failed to create subscription', 500); } - return Response::json('{"id":'.$subscription->id.'}', 201); + return Response::json(['id' => $subscription->id], 201); } }