Luka Modric scored his first Copa del Rey goal for Real Madrid in his 13th season with the club in a win over Deportivo Minera.