where(['id' => $userId])->findOrEmpty(); $user['user_gender_text'] = $user->user_gender_text; $user['user_status_text'] = $user->user_status_text; return $user->toArray(); } }