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/storageWritten by Benjamin Harris
Related protips
Have a fresh tip? Share with Coderwall community!
PHP applications still send a browser full of JavaScript. Hardening the server does not inventory the payment, analytics, and plugin scripts that run after the HTML is delivered.
Security insights from Cside