March 7, 2016


These are just a few notes about how to set up Laravel with Homestead. Please don’t follow these steps. :) Use the official instructions instead. I might turn it into a better guide at some point.

  • Install VirtualBox
  • Install Vagrant
  • Install Composer
  • Install Laravel: composer global require "laravel/installer"
  • Install Homestead: git clone ~/Homestead
  • Make Code directory: mkdir ~/Code
  • Create Laravel project: cd ~/Code; laravel new [project-name]
  • Initialize Homestead: cd ~/Homestead; bash
  • Configure Homestead: vi ~/.homestead/Homestead.yaml
    • Set sites:map to [project-name].local
    • Set sites:to to /home/vagrant/Code/[project-name]/public
  • Add Host Name (By modifying /etc/hosts or using
    • Point [project-name].local at
  • Add the Homestead box to Vagrant: vagrant box add laravel/homestead
  • Create the Vagrant machine: vagrant up
Next Post