all Thai embassy visa applications are online worldwide. The only visit to an embassy is if an interview is requested. In Laos payment is made at the consulate.
You can apply from anywhere except Thailand. The local embassy with jurisdiction over your location will simply request proof of you being in that jurisdiction/country/state/province such as a visa and or entry stamp and or hotel booking.