Skip to content

Instantly share code, notes, and snippets.

@leek
Last active September 16, 2022 21:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save leek/6c8e3650ebd8f271cbce170421fc98c5 to your computer and use it in GitHub Desktop.
Save leek/6c8e3650ebd8f271cbce170421fc98c5 to your computer and use it in GitHub Desktop.
Instructions for setting up and using Homestead

Homestead Setup

  1. (Mac Only) Install Homebrew:

     /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
  2. (Mac Only) Install Caskroom:

     brew tap caskroom/cask
    
  3. Install Vagrant:

     brew install Caskroom/cask/vagrant
    

    Note: For Windows, you'll need to download and install Vagrant manually. See here

  4. Install VirtualBox:

     brew install Caskroom/cask/virtualbox
    

    Note: For Windows, you'll need to download and install VirtualBox manually. See here

  5. Install Composer:

     brew tap homebrew/dupes
     brew tap homebrew/versions
     brew tap homebrew/homebrew-php
     brew install homebrew/php/composer
    

    Note: For Windows, you'll need to download and install Composer manually. See here.

  6. Add the laravel/homestead box to Vagrant:

     vagrant box add laravel/homestead
    
  7. Add the Homestead domain to your HOSTS file by editing /etc/hosts and adding the following:

     192.168.10.10 homestead.app
    
  8. Ensure Composer dependencies have been installed:

     composer install
    

    Note: This command needs to be ran from the project's root directory.

  9. Initialize Homestead in your project:

     php vendor/bin/homestead make
    

    Note: This command needs to be ran from the project's root directory.

  10. Provision the Homestead box:

     vagrant up
    

    Note: This command needs to be ran from the project's root directory.

  11. You should now be able to hit http://homestead.app in your browser!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment