Last Updated: February 25, 2016
·
3.029K
· benjaminrh

Easily setup Laravel 4

I've been looking forward to using Laravel 4 for a while now, and with all the fuss about getting it set up, I was surprised by how easy it turned out to be.

First, make sure you've installed Composer. Now, many of the tutorials on installing Composer -- and many of the instructions for using it -- require you to type composer.phar or php composer.phar. I prefer the method that lets you just use composer, which is what I show here.

$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer

Now we download the latest dev version of Laravel 4:

$ curl -L https://github.com/laravel/laravel/tarball/develop | tar xz

Then cd into the laravel directory, and type composer install.

That's it! It's ready to use. Just make sure you remember to make the storage directory writable:

chmod -R 0777 app/storage