iainheng
4/30/2019 - 4:55 PM

Laravel Homestead on Windows with SMB ("faster shared folders")

Laravel Homestead on Windows with SMB ("faster shared folders")

 ---
  ip: "192.168.10.10"
  memory: 4096
  cpus: 2
  provider: virtualbox

  authorize: C:/Users/<your-user>/.ssh/id_rsa.pub

  keys:
      - C:/Users/<your-user>/.ssh/id_rsa

  folders:
      - map: C:/Users/<your-user>/<your-shared-folder-path-on-host>
        to: /home/vagrant/Code/<your-app>
        type: "smb"                                                    
        mount_options: ["username=USERNAME","password=PASSWORD","vers=3.02","mfsymlinks"]

  sites:
      - map: your.domain.com
        to: /home/vagrant/Code/<your-app>

  databases:
      - homestead
# This installs an auto upgrade mechanism to VirtualBox Guest Adittions
vagrant plugin install vagrant-vbguest

# This installs a bridge to NFS for Vagrant on Windows
vagrant plugin install vagrant-winnfsd

# From Laravel Homestead Documentation:
#  - When using NFS, you should consider installing the vagrant-bindfs plug-in. 
#    This plug-in will maintain the correct user / group permissions for files 
#    and directories within the Homestead box.
vagrant plugin install vagrant-bindfs

###########################################
### PLEASE UPDATE YOUR HOMESTEAD.YAML   ###
### FILE ACCORDINGLY (CHECK FILE BELOW) ###
### BEFORE RUNNNING COMMAND BELOW       ###
###########################################
vagrant reload --provision