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


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: ""
memory: 2048
cpus: 1

authorize: ~/.ssh/id_rsa.pub

    - ~/.ssh/id_rsa

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

    - key: APP_ENV
      value: local