|
|
@ -23,7 +23,7 @@ class RefferalCodeController extends Controller |
|
|
|
$result = RefferalCode::create($data); |
|
|
|
$result = RefferalCode::create($data); |
|
|
|
|
|
|
|
|
|
|
|
if($result){ |
|
|
|
if($result){ |
|
|
|
return response()->json(['status'=>'success','message'=>'Add refferal code successfully!','code'=>200], 200); |
|
|
|
return response()->json(['status'=>'success', 'data'=> $result, 'message'=>'Add refferal code successfully!','code'=>200], 200); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
return response()->json(['status'=>'failed','message'=>'Add refferal Code failed!','code'=>400], 400); |
|
|
|
return response()->json(['status'=>'failed','message'=>'Add refferal Code failed!','code'=>400], 400); |
|
|
|
} |
|
|
|
} |
|
|
|