where(['id' => $userId])->findOrEmpty(); $user['address'] = $user->province_text.$user->city_text.$user->area_text.$user->street_text.$user->village_text.$user->brigade_text.$user->address; $user['gender_text'] = $user->gender_text; $user['status_text'] = $user->status_text; unset($user['province'],$user['city'],$user['area'],$user['street'],$user['village'],$user['brigade']); return $user->toArray(); } }