feat: add referral_code
This commit is contained in:
@@ -638,6 +638,10 @@ public function status(Request $request)
|
||||
->first();
|
||||
}
|
||||
|
||||
// Expose the referrer's uuid so downstream apps can resolve the
|
||||
// referral relationship (کد معرف) against their own local user.
|
||||
$user['referrer_uuid'] = $user->referred_by ? optional($user->referrer)->uuid : null;
|
||||
|
||||
return $user;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user