vagrant box add laravel/homestead
cd ~
git clone https://github.com/laravel/homestead.git Homestead
cd Homestead
bash init.sh
You will now have a ~/.homestead/Homestead.yaml file where you can edit your sites and configurations
sudo vi /etc/hosts
add the following line:
192.168.10.10 homestead.app
vagrant up
ssh -lvagrant 127.0.0.1 -p2200
cd /root
composer global require "laravel/installer"
add to /root/.bashrc
export PATH="/root/.composer/vendor/bin:$PATH"
reload bashrc source /root/.bashrc
cd /home/vagrant/Code
laravel new blog
cd blog
php artisan make:auth
php artisan migrate:install
php artisan migrate:refresh
Edit ~/.homestead/Homestead.yaml
Run vagrant provision
from ~/Homestead
dictory
cd ~/Homestead
vagrant destory
Simply add to sites in Homestead.yaml
and run vagrant reload
sites:
- map: first.dev
to: /home/vagrant/first/public
- map: second.dev
to: /home/vagrant/second/public