From ad59e5f3ec52fdf2e0726bafad03eb157609a846 Mon Sep 17 00:00:00 2001 From: wahyuun Date: Wed, 29 Nov 2023 00:18:37 +0700 Subject: [PATCH] update response --- app/Http/Controllers/UserToProyekController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/UserToProyekController.php b/app/Http/Controllers/UserToProyekController.php index f6fca59..0e8736e 100644 --- a/app/Http/Controllers/UserToProyekController.php +++ b/app/Http/Controllers/UserToProyekController.php @@ -64,10 +64,10 @@ class UserToProyekController extends Controller if($countRes > 0){ return response()->json(['status'=>'success' ,'message'=>'Project customer successfull created','code'=>200]); }else{ - return response()->json(['status'=>'success' ,'message'=>'Project customer failed created','code'=>400]); + return response()->json(['status'=>'failed' ,'message'=>'Project customer failed created','code'=>400]); } }else{ - return response()->json(['status'=>'success' ,'message'=>'Project customer successfull created','code'=>200]); + return response()->json(['status'=>'failed' ,'message'=>'Project customer failed created','code'=>200]); } }