Is this a correct sentence?

Please tell me is this sentence correct?

Socrates was like-minded with other philosophers.

If this sentence is wrong, kindly tell me what would be the correction.

Initially I had doubts about “like-minded with”, but on reflection I think it’s OK.