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

Federico Krum
Federico Krum
6,625 Points

It looks that the video for installation is no longer valid. Are you planing an update?

I came across many differences that are makeing the installation process a real pain in the neck. Found an answer on the class questions that make me go a little further, but now I am stack at the point of making "vagrant ssh" , it is not working while in the homestead directory.

12 Answers

Derrick Ray
Derrick Ray
19,083 Points

It seems as if there have been some changes to the Homestead repository since the video was made. I took the following steps to successfully install Laravel on Mac 10.10:

At ~2:00 into "Installing Laravel Homestead"...

Clone the git respository into a new folder called Homestead in your home (~) directory:

git clone https://github.com/laravel/homestead.git Homestead

The Homestead.yaml file is no longer natively in the repository. We need to initialize Homestead to make this happen:

cd Homestead
bash init.sh

This creates the Homestead.yaml file within a hidden ".homestead" folder in your home (~) directory. The "subl" shortcut wasn't working on my make so to open the file in Sublime Text 2 I entered:

/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl ~/.homestead/Homestead.yaml

I believe the file could also be opened with nano if the line above didn't open Sublime correctly. You should be able to pick up the video ~2:50 in and continue.

Derrick Ray
Derrick Ray
19,083 Points

Just remember to create a Project folder in your Homestead directory before running "vagrant up." That tripped me up as that specific step isn't in the video.

Federico Krum
Federico Krum
6,625 Points

In fact someone tried to explain the diferences here , but following his advice got other issues like local folder not syncing with vm directory, and permissions problems.

Please treehouse staff, something needs update here.

After 2 days traying to install laravel, I gived up the course.

Federico Krum
Federico Krum
6,625 Points

Hi I'm on MacOs 10.10.

Issues: -Git step not needed any more -A homestead command insted of vagrant init, up , etc -A .homestead directory -No yaml file. -Cant find larval-basics after installation

But don't take my word. Try the installation tutorial on the video and you will see

I am not a newbe on installing virtual machines though vagrant. Did it many times.

thanks

Michael Terpeza
Michael Terpeza
17,726 Points

I agree that an update is needed. I'm learning a lot on how to install everything in a round-about way but is also frustrating and taking up WAY more time than needed.

Please update for 5.0 :)

Ginger Tech
PLUS
Ginger Tech
Courses Plus Student 5,566 Points

Update is definitely needed. The versions of more or less everything in this video are a bit behind (not drastically, though). After cloning the git repo, we have a different set of files in the Homestead directory compared to what is in the video as it's not up to date. Also, compare the docs for Homestead in the video to what the current docs are.

Heidi Cykana
Heidi Cykana
10,205 Points

I was COMPLETELY lost until I saw this. Composer was NOT installed on my OSX 9.4 machine, the YAML file refused to be created with 'bash init.sh' as suggested in the documentation, and I was about to walk away. However, these steps worked, and now I'm up and running. Additionally, Laravel 5 just came out, so when you download the latest version, that's what you're getting. If you'd like people to use 4.2 so they're in synch with the video, redoing the instructions so people get the proper older version would be helpful.

Federico Krum
Federico Krum
6,625 Points

How can it be that no usefull anwer is provided by any moderator? Please Treehouse, some times an official answer is much appreciated and gives us (users) the courage to recomend this way of learning. This tutorial is completly outdated.

Can you gives us a few more details about what OS you're on and the error messages you're getting back? As far as I'm aware, the process hasn't changed that significantly.

Federico Krum
Federico Krum
6,625 Points

Dear Tom Cawthorn (Mod), All details are in this thread. Most recent instructions are for other version of laravel different from 4. Please put yourself in the shoes of someone that paid this plataform and get stuck. Not all users have skills beyond following this videos. I had a lot of satisfactions on TreeHouse, but answering in a way it can help newbies is not a strong point they have. I have other issues unanswered even after contacting support.

I wish owners read my posts in order to correct and keep on going with this great idea.

Best regards.

Hey Federico Krum!

Oh my! I didn't realise that comment was bad enough to be down-voted. I've since deleted it because it's not at all helpful.

I realise that the step by step instructions from the video aren't much good for installing the latest version of Homestead. However, the installs are almost exactly the same - just the configuration is just set in different places. The changes in configuration seem to be where most of the confusion is coming from (from what I've read elsewhere).

The Laravel docs instructions for setting up Homestead have been vastly improved since Laravel 4.2 and a great place to refer to for future installs. However, they're are not quite simple enough for a beginner. The most up to date video for beginners I've found is on Laracasts.

Laracasts is a video provider like Treehouse but dedicated to Laravel. Jeffrey Way has created a free video series for instructions to Laravel 5.0. He's also done another for installing the latest Homestead (2.0). You can see that video here.

He moves quite fast compared to Treehouse, so you might have to watch it a couple of times ;)

Hope that's more helpful!

Federico Krum
Federico Krum
6,625 Points

Dear Tom,

Thanks for the answer. You are right, Jeffrey Way is good and is true he is in fact fast. https://laracasts.com/series/laravel-from-scratch/ is a great tutorial and has some realy easy 4.1 instalation.

thanks