Loyalty is earned.
You can't demand loyalty , either people respect you or they don't, if they respect you and trust you loyalty will follow.
Do not mistake loyalty for fear, many times in our work place we need the job so we are more likely to go along but do not lose your moral compass. Do what you have to do to put food on your table, do not intentionally hurt anyone but keep your eyes open.
By all means do not do anything you think may be illegal or morally wrong because you fear losing your job, choose your time and make the correct choice.
It's about how to lead your life. If you lead your life the right way, the karma will take care of itself.