diff --git a/app/Modules/ApiAuth/Controllers/ApiAuthController.php b/app/Modules/ApiAuth/Controllers/ApiAuthController.php index 3a52921..f81a964 100644 --- a/app/Modules/ApiAuth/Controllers/ApiAuthController.php +++ b/app/Modules/ApiAuth/Controllers/ApiAuthController.php @@ -62,6 +62,10 @@ class ApiAuthController extends Controller 'success' => true, 'token' => $user->createToken(bin2hex(random_bytes(20)))->plainTextToken, 'message' => __('successfully verified'), + 'user' => [ + 'name' => $user->name, + 'phone' => $user->phone, + ], ]); }