4
I’m starting to Laravel and would like to organize my development environment using some "hosts" for my projects. I created the first Larable and after suffering a little with its installation, it worked out that it was a beauty. Then I started a new project, I set up the Homestead.yaml and the hosts from my system, but when I try to access through the browser it still points to the first project. I tried to stop the Artisan but continued with the problem, researched on the internet and the solutions I found did not work . I use the Ubuntu 16.04 and the Laravel 5.2 with the homestaed (Vagrant/virtualbox). Below transcribe part of the files hosts and Homestead.ymal so you can get an idea of how they were set up. I ask friends for help in trying to solve this problem. Thank you.
[hosts]
# vagrant hosts
192.168.10.10 homestead.app
192.168.10.10 api.app
[homestead.yaml]
ip: "192.168.10.10"
folders:
- map: /home/<user>/Dropbox/Projetos/Laravel-PHP/Projetos
to: /home/vagrant/Code
sites:
- map: homestead.app
to: /home/vagrant/Code/Laravel/public
- map: api.app
to: /home/vagrant/Code/ApiTeste/public
See the orientation of the Laravel website: http://laravel.artesa.org/docs/5.1/homestead#Adding-Additional-sites
– Álvaro