Setting up Laravel 5 on OSX
So what does Laravel do for me? Makes shit easy, that’s what. I started messing with the model views and the beautiful dynamic content and simplicity to create and connect to databases. Don’t forget migrations and authentication it provides. It made me feel like a hero of web development. Getting Laravel on my local macbook pro was a few step process that hopefully one day I will remember.
1. Download Composer
curl -sS https://getcomposer.org/installer | php
Let it run until you get a product key, then your done.
2. Create a laravel project
In terminal run..
composer create-project laravel/laravel ProjectName — prefer-dist
This will create a project in the user directory folder
3. cd into your repository
Basically, this just tells the command prompt that you want to work out of this folder. In the terminal, run…
4. On your mark, get set, start your server
One of the coolest things about laravel is that it has a built-in server. Pretty sweet right? In terminal type…
php artisan serve
Pretty simple but it helps to memorize it. Get your projects started quicker and be more productive.