- Download Vagrant and then
vagrant box add laravel/homestead. Please use3) virtualboxoption if asked. cd ~; git clone https://github.com/laravel/homestead.git ~/Homesteadcd ~/Homesteadbash init.sh(create the Homestead.yaml configuration file and will be placed in the Homestead directory)vi Homestead.yamlModify 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/hostsAdd
192.168.10.10 <project-name>.test