And that's often one of the biggest considerations you should make when switching jobs. Your current coworkers will be by far your best job connections in he future, so do them well by leaving gracefully.
I have loved working with certain people, that didn't protect them from being laid off by higher ups.
What you're both saying isn't mutually exclusive. Your job isn't going to love you back - if a bunch of people get laid off and you're in that bunch, tough luck.
But on the other hand, yes, you should do your best to be the kind of person your colleagues are excited to interact with.
Feel free to not care for my comment. It comes from 15 years of work experience. I find that it holds true. Your mileage may vary. A job is a transaction; no more, no less. Treat it as such.
Or self-fulfilling prophecy ? Sarcasm apart, mileage really does vary a lot and it depends on personality, colleagues, the industry, the company or the clients and other factors I can't think of. But these have to be considered nonetheless to sail the seas of work.
I like your phrasing: "it's not going to love you back".
I have never worked at a place that acted like it didn't care about me as an individual. Of course, I've always worked at smaller orgs too. I've never worked somewhere over 200 people or so.