feat: add referral_code

This commit is contained in:
2026-06-06 13:10:25 +03:30
parent 0f5f7835e7
commit 6c602af9eb
5 changed files with 120 additions and 0 deletions
+4
View File
@@ -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;
}