Germany international Toni Kroos has extended his contract with Real Madrid until 2023.