do somehow by

do all right by (one)

To treat one favorably and respectfully. I need to put aside my work stress and remember that my true goal in life is to do all right by you and the kids.
See also: all, by, right

do badly by (one)

To treat one poorly. I've been so absorbed in my job that I've done badly by my wife and kids.
See also: badly, by
Farlex Dictionary of Idioms. © 2015 Farlex, Inc, all rights reserved.

do somehow by someone

to treat someone in a particular manner. (Do not confuse this with a passive construction. The someone is not the actor but the object.) Tom did all right by Ann when he brought her red roses. I did badly by Tom. I fired him without good reason.
See also: by, somehow
McGraw-Hill Dictionary of American Idioms and Phrasal Verbs. © 2002 by The McGraw-Hill Companies, Inc.
See also: