It comes out of the box with Homestead. However it depends on the version of Homestead you use what you get. Make sure you are on the latest Homestead to get the most updated version
Documentation: https://laravel.com/docs/5.8/homestead#updating-homestead
Also the vagrant box is maintained to always work. So for some packages not always the latest version is used because it can break the vagrant box or any other functionality. If you want to the latest version of something you have to install it yourself.
Also you can automatically instead these new things after a destroy using an after.sh file
Documentation: https://laravel.com/docs/5.8/homestead#extending-homestead