To fix that, you need to add type of folder mapping to Homestead.yaml config. It should be located in your home directory, like: /home/dev/.homestead/Homestead.yaml
folders:
- map: ~/Code
to: /home/vagrant/Code
type: nfs
http://laravel.com/docs/5.0/homestead
https://github.com/laravel/homestead/blob/master/src/stubs/Homestead.yaml