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
Written by Benjamin Harris
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#