Real Madrid C. F. and Luka Modrić have reached an agreement to extend the player's contract until 30 June 2023.