About lor problem for phd

I worked as a faculty for five years after my mtech completion.I want to apply for PhD.is it mandatory to take lor from my colleague employees where I worked with? Because I don’t have good terms with them

Not really, you can take LOR from anyone that you believe knows you well. It could be your current employment place or your professors in your M.Tech college or anyone who knows you well and worked with you or taught you.