Across the country, employers are grappling with new laws that bring guns closer to the office.

Starbucks Corp. made headlines recently when its chief executive asked customers to keep guns out of company cafes. His appeal thrust the company into local and nationwide debates about the role of private business and public gun laws.

Today, some 22 states have passed laws that limit property owners' ability to ban firearms in vehicles in parking areas, according to the Law Center to Prevent Gun Violence, a San Francisco-based gun-control advocacy group.

Details vary by state, but under most so-called Bring Your Gun to Work laws, employers can keep firearms out of offices and factory floors, but they can't ban weapons in the parking lot.

Some companies have taken the changes in stride, but others are rewriting their human-resources policies, training employees to detect early signs of employee aggression and considering extra security for tense situations like termination meetings. Law firms specializing in labor and employment say managers are bombarding them with questions about adapting to the new measures.