I cut the carpet in front of the slide leaving just enough so I could staple it down securely. Then I used a "T" transition piece to cover the edge of the carpet and the edge of the laminate.
I got the transition piece from Armstrong who made the laminate. They had several different types. Laminate to linoleum, laminate to carpet, etc.
In front of the dinette where I wanted to use oak baseboard I stapled the laminate to the floor. That was years ago and there has been no problems with expansion.
A commercial installer said they do it all the time and don't have any buckling.
Clay (WA5NMR), Lee (Wife), Katie (cat).
Full Timing in a 2004 Winnebago Sightseer 35N, Workhorse chassis, Honda Accord toad