- Download Vagrant and then
vagrant box add laravel/homestead
. Please use3) virtualbox
option if asked. cd ~; git clone https://github.com/laravel/homestead.git ~/Homestead
cd ~/Homestead
bash init.sh
(create the Homestead.yaml configuration file and will be placed in the Homestead directory)vi Homestead.yaml
Modify this
- map: theyyam.test
to: /home/vagrant/code/theyyam/public
Note: Please use spaces in tab for editing YAML
6. mkdir ~/code
7. vagrant up
8. vagrant reload --provision
(this is required whenever we change Homested.yaml)
10. cd ~/code; git clone <your-repo-link>; cd ~/Homestead
11. SSH into Homestead Vagrant Box vagrant ssh
12. Run the application
cd code/<your-project-name>
php artisan serve
control+d
(come out of the vagrant box)- Adding virtual host at your machine
sudo vi /etc/hosts
Add
192.168.10.10 <project-name>.test