Have a way with (someone or something)

To be able to lead or persuade or influence others.

The little girl has a way with horses. They are very gentle when she is around.