kphcdr 1 year ago
parent
commit
48cf960be4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/Modules/Mini/Controllers/AuthController.php

+ 2 - 0
app/Modules/Mini/Controllers/AuthController.php

@@ -90,6 +90,8 @@ class AuthController extends BaseController
                 "id" => optional($user->company)->id ?? 0,
                 "name" => optional($user->company)->name ?? "",
             ],
+            "email" => $user->email ?? "",
+            "phone" => $user->phone ?? "",
             "cart_total" => Cart::where("user_id", $user->id)->count(),
             "fav_total" => UserFav::where("user_id", $user->id)->count(),
         ]);