This letter considers a solar-powered unmanned aerial vehicle (UAV) system, where the UAV collects data from Internet of Things Devices (IoTDs) on the ground while also charging them using laser charging technology. Both the linear and nonlinear laser charging models are considered. We aim to maximize the residual energy of the UAV while satisfying the requirements of IoTDs by jointly optimizing the three-dimensional (3D) trajectory of UAV and scheduling for IoTDs. The optimization problem is formulated as a mixed integer non-convex problem which is difficult to solve in general. We apply the successive convex approximation and block coordinate descent algorithm to address this problem successfully. Simulation results verify the effectiveness of our algorithm compared with two benchmark methods.