Laravel
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 https://github.com/laravel/homestead.git ~/Homestead
- Make Code directory:
mkdir ~/Code
- Create Laravel project:
cd ~/Code; laravel new [project-name]
- Initialize Homestead:
cd ~/Homestead; bash init.sh
- Configure Homestead:
vi ~/.homestead/Homestead.yaml
- Set
sites:map
to[project-name].local
- Set
sites:to
to/home/vagrant/Code/[project-name]/public
- Set
- Add Host Name (By modifying
/etc/hosts
or usingServer.app
)- Point
[project-name].local
at192.168.10.10
- Point
- Add the Homestead box to Vagrant:
vagrant box add laravel/homestead
- Create the Vagrant machine:
vagrant up