Laravel


Brian Retterer
@bretterer

IRC: lamarus

bretterer@gmail.com



http://brianretterer.com/

Many Frameworks

The PHP Framework 

For Web Artisans



What is Laravel?


Laravel is a web application framework with expressive, elegant syntax.  Laravel believes development must be an enjoyable, creative experience to be truly fulfilling. 

Created by Taylor Otwell in 2011, we are now on Laravel 4 which was released May of this year.


What does Laravel Have?



RESTful Routing
Blade Templating
Testing
Composer
Great Community
Eloquent ORM
Migrations


... AND MORE!

Composer Support


Larevel was built with composer in mind.  In fact, composer
is how you install it.

 


Composer Packages


There are many composer packages that can be installed.
Just take a look at packagist.org


After putting them in your composer.json file,
it is as easy as running the following.

Artisan

The best part of Laravel IMHO, is Artisan

Artisan is a command line tool that allows
you to do a lot of setup and file creation

Simply run 'php artisan' from the root of your 
project and you will get the information



RESTful Routing

Basic Get Route





Basic Post Route


RESTful Routing - Filters


Adding a filter to a route is easy.  

You can set it to run before or after the route is hit.



RESTful Routing - Groups


Group Routing allows you to set up a group of routes.  
This is useful for things like admin pages.  
All routes are /admin/*



RESTful Routing - Subdomain


Along the same lines of groups for admin, You 
can set up subdomain routing.


Blade


Blade is a simple, yet powerful templating engine
provided with Laravel.

Using A Layout

Defining A Layout

Testing

Laravel is built with unit testing in mind.  
It supports testing with PHPUnit which is included on install.  
A phpunit.xml file is already set up for your application.

There are also other packages that integrate with
testing in Laravel.
 





Migrations

Have you ever wanted version control on your database?
Now with Laravel you can.


Eloquent ORM


Object Relation Model has made it very easy for making 
database queries


Create a new entry

Eloquent ORM

Update an entry


Delete an entry

Eloquent ORM

Soft Deletes

Queries to get with/without trashed



Community


Laravel has a great community.  We have many different
resources that you can use to get help and guidance
#laravel



Thank You!


Brian Retterer

bretterer@gmail.com

@bretterer

IRC: lamarus


http://laravel.com
http://brianretterer.com

Laravel

By Brian Retterer