Law firms are cashing in on Boston’s robust commercial and development market and adding real estate attorneys to collect the spoils.

The building frenzy, coupled with brisk sales of high-rise buildings, is boosting revenue at the city’s legal real estate strongholds, including Boston’s Goulston & Storrs; Goodwin Procter; and Mintz, Levin, Cohn, Ferris, Glovsky and Popeo; and national firms DLA Piper and Nixon Peabody.