The key to provide an attractive workplace is to understand the employee's needs. As a manager you should be sensitive to workplace frustrations and day-to-day problems.
Only if you understand the difficulties of the job can you provide solutions for a better workplace.
Letting employee see that you care is very important. Let the team be part of the process to create an attractive workplace.
Institute daily or weekly "improvement" and "feedback" sessions in the work-routine to systematically collect employee needs. Let employee use convenient feedback tools to submit problems / improvement ideas anytime anywhere.