Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Laravel Framework

When you create a new new laravel project do you have to change the homestead.yaml file to map to the new project??

so if i have a new project called my new project?? I changed the .yaml file like below but still shows laravel-basics project.

  - map: laravel.dev
      to: /home/vagrant/Sites/new project/public  ??

2 Answers

dont worry managed to get it working didn't realise you had to run the command 'vagrant provision' in order for VM to load with the new settings.

Philip Cox
Philip Cox
14,818 Points

You can add an additional mapping below the other. Also add the local ip to the hosts doc in /etc

i have tried to map a new project in the Homestead.yaml file but dont get how it still displays the laravel-basics page. this is my Homestead.yaml

ip: "10.0.10.10"
memory: 2048
cpus: 1

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: ~/Homestead/Projects
      to: /home/vagrant/Sites
sites:
    - map: laravel.dev
      to: /home/vagrant/Sites/test_240814/public

variables:
    - key: APP_ENV
      value: local