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