Van Slyke went deep off Miley and Herrera hit his first big-league homer to chase Arizona’s lone All-Star representative in the seventh inning to back Nathan Eovaldi, who got his first win in his eighth start.

Eovaldi (1-5) lasted six innings and allowed a run on five hits with three walks and three strikeouts.

Dodgers relievers Scott Elbert and Ronald Belisario combined on a scoreless eighth inning, and Kenley Jansen struck out the side in the ninth for his 15th save.

Arizona’s club-record streak of 15 games with a home run ended.

The Dodgers got to Miley, Arizona’s most effective starter this season, for two runs on four sharply hit balls in the first inning. Juan Rivera and Luis Cruz drove in runs with one-out hits.

Dodgers second baseman Mark Ellis made his first start since May 18, when injured his left leg. Ellis finished 2 for 4 with a walk.

The Diamondbacks grounded into three double plays and Herrera made a pair of important running catches on sinking line drives to left field.

Also …

Diamondbacks manager Kirk Gibson defended his two-time All-Star outfielder, Justin Upton, after Upton heard boos during Wednesday’s game in which he went 0 for 5, stranded five runners on base and later said he doesn’t care about the fans. “I didn’t read it that way. I think what he was saying was that he goes out and prepares. He’s doing everything he can. It’s all how you take the context of any quote,” Gibson said. “I will say this about fans. Let’s just stop if you’re the fans and think about it. Do you want him to do good? Would booing in any way shape or form motivate somebody or help somebody? J-Up cares about everything that he does here. Trust me.”