I find that phpunit runs a lot faster on localhost so when I’m developing a Laravel app with Homestead I like to do this:
ssh -nNT -L 6379:192.168.10.10:6379 firstname.lastname@example.org
This will forward calls on port 6379 (default for Redis) from localhost to the Redis instance in my VM and you can do this with any other service.
To forward MySQL for example:
ssh -nNT -L 3306:192.168.10.10:3306 email@example.com
The port address on the left is your local port and the one on the right is in your VM.