fix user resource and profil
This commit is contained in:
@@ -46,7 +46,7 @@ class ProfileController extends Controller
|
|||||||
$user->update([
|
$user->update([
|
||||||
'first_name' => $request->first_name,
|
'first_name' => $request->first_name,
|
||||||
'last_name' => $request->last_name,
|
'last_name' => $request->last_name,
|
||||||
'national_id' => $request->national_id,
|
'national_id' => $user->kyc_status == 0 ? $request->national_id : $user->national_id,
|
||||||
'address' => $request->address,
|
'address' => $request->address,
|
||||||
'postal_code' => $request->postal_code,
|
'postal_code' => $request->postal_code,
|
||||||
'phone_number' => $request->phone_number,
|
'phone_number' => $request->phone_number,
|
||||||
|
|||||||
@@ -24,12 +24,13 @@ class UserResource extends JsonResource
|
|||||||
'address' => $this->address,
|
'address' => $this->address,
|
||||||
'postal_code' => $this->postal_code,
|
'postal_code' => $this->postal_code,
|
||||||
'phone_number' => $this->phone_number,
|
'phone_number' => $this->phone_number,
|
||||||
'province_id' => $this->provonce_id,
|
'province_id' => $this->province_id,
|
||||||
'province_name' => $this->province_name,
|
'province_name' => $this->province_name,
|
||||||
'city_id' => $this->city_id,
|
'city_id' => $this->city_id,
|
||||||
'city_name' => $this->city_name,
|
'city_name' => $this->city_name,
|
||||||
'birth_date' => $this->birth_date,
|
'birth_date' => $this->birth_date,
|
||||||
'kyc_status' => $this->kyc_status,
|
'kyc_status' => $this->kyc_status,
|
||||||
|
'authority_level' => $this->authority_level,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user