Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP Laravel 4 Basics Getting Started with Laravel Installing Laravel

Frederico Machado da Silva
Frederico Machado da Silva
3,826 Points

How can i work in more than one project?

I'd like to work in more the one project simultaneus. What i have to do to configurate this?

2 Answers

Hey!

You will need to update a couple of different places.

In your etc/hosts file, you'll need to add the names of the site you want to work with and point to 127.0.0.1

#hosts

127.0.0.1 laravel-basics.dev 
127.0.0.1 another-project.dev
127.0.0.1 yet-another-project.dev

You can add multiple sites to homestead.yaml

sites:
    - map: laravel-basics.dev
      to: /home/vagrant/Sites/laravel-basics/public   
    - map: another-project.dev
      to: /home/vagrant/Sites/another-project/public
    - map: yet-another-project.dev
      to: /home/vagrant/Sites/yet-another-project/public

After you've made your changes in Homestead.yaml, run

vagrant provision

This just broke everything.

nightmare!

I think the best thing to do now would be create a new post in the forum (if you haven't already) and link to it here also.

Give as many details as you can about your problem and explain what you've done / what you had before :-)

Ok, so I deleted everything and re-did it as per your instructions and it worked. Not sure what happened but its fine now :)

Ann Cascarano
Ann Cascarano
17,191 Points

You can go to your 'Workspaces' area in the toolbar on the left and choose 'New Workspace'. You can have several going at the same time - say if you're working on a CSS course and a Python course, for example. If you have several open at once (10 I believe) - you'll be asked to delete some.

He's asking about a project in Laravel, which isn't workspace compatible.