Intro to Laravel PHP Framework

Post on 10-May-2015

11,040 views 5 download

Tags:

description

Introduction to the Laravel PHP Framework. Where it came from, what an install looks like, and comparisons to a few other frameworks.

transcript

Introduction to LaravelBill Condo // 2013-01-09

Wednesday, January 9, 13

Lineage

April 2011 by Taylor Otwell

February 2006 by EllisLab

Wednesday, January 9, 13

Comparison

• CodeIgniter: +More Mature, +Legacy PHP Support, -No ORM, -Legacy Support

• Kohana: +ACL, +Benchmarking, -Sparse Docs

• FuelPHP: +Fast, +ACL, +ORM, -Incomplete Docs, -Small Community

Wednesday, January 9, 13

Overview

• MVC Framework with Bundles, Migrations, and Artisan CLI

• Eloquent ORM, Restful Controllers, Class Auto Loading, and Powerful Routing

Wednesday, January 9, 13

Project Structure

• application

• bundles

• laravel

• public

• storage

Wednesday, January 9, 13

Example Controller

Basic Controller

Wednesday, January 9, 13

... And Another

REST Controller

Wednesday, January 9, 13

Example Model

Basic Eloquent Model

all(), find(), where(), count(), save(), delete(), and more auto included.

Wednesday, January 9, 13

Example View

Calling From Controller

Passing in Data

Wednesday, January 9, 13

Example View Cont.

Accessing Data

*Also, View Templating is available with Blade.

Wednesday, January 9, 13

Learning

• Lot’s of videos. Bundled up at... bitly.com/bundles/mavrck/1

• Tutorial Series by Dayle Rees at...daylerees.com/category/laravel-tutorials

• Forums...forums.laravel.io

• IRC...#laravel irc.freenode.net

Wednesday, January 9, 13

Questions?

• billcondo@gmail.com

• @mavrck

• billcondo.com / mavrck.com

Wednesday, January 9, 13