success( new UserResource($this->service->show($request->user())), 'Profile berhasil diambil' ); } public function update(UpdateProfileRequest $request) { $user = $this->service->update( $request->user(), $request->safe()->except(['current_password', 'password_confirmation']), $request->user() ); return $this->updated( new UserResource($user), 'Profile berhasil diperbarui' ); } }