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 4 Basics Getting Started with Laravel Installing Laravel Homestead

sarah al jindan
sarah al jindan
950 Points

Can't seem to find the homestead.yaml file anywhere.. I'm running on os x el capitan.

I've followed the steps and tried to find the answer on stackoverflow but couldn't find a suitable answer. It said somewhere that I should run the command homestead init to initialise the config and .yaml but my terminal doesn't recognise the command.

sarah al jindan Laravel 4 is too old version to learn.I skip laravel from here because of it. :-(

3 Answers

Ashish is correct, however Homestead / Valet is a great way to get any Laravel installed and playing with it. Check out the Laravel documentation

You may install Homestead by simply cloning the repository. Consider cloning 
the repository into a  Homestead folder within your "home" directory, as the 
Homestead box will serve as the host to all of your Laravel projects:

cd ~

git clone https://github.com/laravel/homestead.git Homestead
Once you have cloned the Homestead repository, run the 
bash init.sh command from the Homestead directory to create the 
Homestead.yaml configuration file. The Homestead.yaml file will be 
placed in the ~/.homestead hidden directory:

// Mac / Linux...
bash init.sh

// Windows...
init.bat

Edit: Fixed formatting so you don't need to scroll to follow the instruction.

Pablo Duran
Pablo Duran
15,052 Points

Hi,

I found the "Homestead.yaml" inside the following directories:

Homestead/src/stubs/Homestead.yaml

I hope you find this helpful.

Best Regards.

Bruno Monteiro
Bruno Monteiro
4,230 Points

Thanks mate, i really apreciated it :)

Bruno Monteiro
Bruno Monteiro
4,230 Points

Since the time you discovered the file, is location was changed on recent versions... The file now lies on "Homestead/Resources/Homestead.yaml".