kphcdr 1 anno fa
parent
commit
48cf960be4
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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(),
         ]);