Sunday, January 25, 2015

Laravel 1

Laravel tutorial 1

I've noticed that most Laravel tutorials are fairly complicated, so I've decided to write notes for myself so that I can have a reference.

Chapter 1 How to install.

Before you can install Laravel, you must first install what is called a LAMP environment which is a system that helps you handle the different languages and components.

My two suggestions are

WAMP which we will be using   http://www.wampserver.com/en/

XAMPP which is for windows linux and mac https://www.apachefriends.org/index.html

Both of these handle about the same. By downloading and installing them you are also installing PHP and any other languages you need to create your local database network.

After you have installed your Wamp Server you will want to install Composer https://getcomposer.org/doc/00-intro.md

Composer is a software that handles many functions inside of laravel.

For windows you can use the composer installer, which is available on their website. The installer will ask for the location of "php.exe" and for wamp servers that location will be C:\wamp\
bin\php\php.5.1 (or whatever version of php you have).php.exe


for other os systems to install composer it appears like you must open up your terminal and type this line

php -r "readfile('https://getcotmposer.org/installer');" | php

This should install composer on your computer. I will be testing this out later on my mac mini when I get some free time and get back to this.



after composer is installed open your comand prompt and type this line

composer global require "laravel/installer=~1.1"
this will install laravel on your computer.