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?
• @mavrck
• billcondo.com / mavrck.com
Wednesday, January 9, 13