by Joe palala RevealJS Created by Hakim El Hattab / @hakimel
Laravel 1.0 Note: PHP5.3 - August 2009
Taylor Otwell, the creator of Laravel, wanted to create a framework with out of the box functionality:
Codeigniter 1.x, a popular framework lacked these out-of-the-box functionality
PHP 5.3.0 offers a wide range of new features: Support for namespaces has been added. Support for Late Static Bindings has been added. Support for jump labels (limited goto) has been added. Support for native Closures (Lambda/Anonymous functions) has been added. There are two new magic methods, __callStatic() and __invoke(). Nowdoc syntax is now supported, similar to Heredoc syntax, but with single quotes.That was released this year - Feb 4, 2015
We have a new Directory Structure, composer loading uses PSR-4
Method injection, just declare the class under composer, and you can directly reference it.. and many more
Migrations, Seeding, Deployment - built-in
composer create-project laravel/laravel demo-projectsignup for free dev plan at fortrabbit in fortrabbit, you can just git clone your site and update your git repo, and it will update your site Zero-to-deploy
In laravel, routes help you define the path to the "resources" of your app.This makes sense for your developers to know immediately what routes or URL's your application has.
Object relational model based on ActiveRecord called Eloquent.
Eloquent allows you to easily define models and their relationships and makes you do less SQL. We don't all like writing SQL code.
$users = User::all(); $user = User::find(1); var_dump($user->name); $model = User::findOrFail(1); $model = User::where('votes', '>', 100)->firstOrFail();
(for tutorials see maxoffsky.com) :-)