For Papilio machaon sp oregonius I hand pair, then feed twice a day 20% honey for two days and keep the females in glassine envelopes in the dark during this time.
On the third day I place them in a pop-up tent in a sunny and warm location directly over live hostplant outside. They lay very well. It's important for the hostplant to be fresh young shoots so they are soft...otherwise the females get to much wing damage and aren't able to be wild released later.
If the days are a bit cool, a sheet of clear plastic over the pop-up tent increases the temperature nicely to help with laying. Just be careful of temps in the tent or you may cook the butterflies.
I have them lay a total of three days before wild releasing, and I also give them a day off between laying days. This day off is in a glassine envelope in the dark, again fed twice daily the honey solution. I've found that the 24 hour rest between laying increases egg production and also leads to healthier females to release once the three days of laying are complete.
After seven total days, two waiting in the dark...three laying...and two days in the dark between laying...females are still healthy and are wild released. Many come back to my garden to lay more eggs.