View
264
Download
2
Category
Tags:
Preview:
Citation preview
About Laravel
- Fullstack PHP Web Framework
- Open Source (MIT License)
Version:
- v1, June 2011
- v2, November 2011
- v3, February 2012
- v4, May 2013
- v5 (4.3), February 2015
About Laravel
In Narnia (The Chronicles of Narnia), Cair Paravel is the
name of the castle where the kings and queens of Narnia
live. Laravel rhymes with Paravel. I thought the name had a
classy and sophisticated ring to it.
– Taylor Otwell
source: https://laravel-news.com/2014/03/in-narnia-cair-paravel-is-the-name-of-the-castle
About Laravel
Server Requirements:
- PHP >= 5.4
- Mcrypt PHP Extension
- OpenSSL PHP Extension
- Mbstring PHP Extension
- Tokenizer PHP Extension
- JSON PHP Extension
Why should we use Laravel?
Laravel powered by Composer,
tool dependency management and
autoloader for PHP.
https://packagist.orgmain composer repository.
http://packalyst.comdirectory of packages for Laravel.
Why should we use Laravel?
- Laravel is clean, classy and elegant PHP Framework
- Dependency Injection (DI) for reusable code
- Built in unit testing for TDD approach
- Follows PSR (L5 follow PSR-4)
- Use latest technology of PHP language
- Good documentation
- Great Community
Removed Features in Laravel 5
- Annotation (Route,
Controller, Event, Model)
- Remote SSH
- HTML Form
- Whoops error handler
New Features in Laravel 5
- Artisan command
- Helpers
- Eloquent attribute casting
- Event object
- Event scheduler
- Form request & request validation
- Elixir
- Socialite
- Command (queue)
New Features in Laravel 5
- Folder structure
- DotEnv
- Cache route & config
- Symfony var dumper
- Middleware
- Contract
- Controller method injection
- Blade changes
- PsySH in Tinker
- Flysystem / Cloud Storage
Symfony VarDumper in Laravel 5
The VarDumper component provides mechanisms for
walking through any arbitrary PHP variable
Cache Config and Route in Laravel 5
- Create and delete cache config
- Create and delete cache route
Cache Config and Route in Laravel 5
Cache route only for non Closure.
Cache location:
- /vendor/file.php, or
- /storage/framework/file.php
Middleware in Laravel 5
- Before Middleware, perform some task before the
request is handled by the application
Middleware in Laravel 5
- After Middleware, perform some task after the request
is handled by the application
Middleware in Laravel 5
- Terminable Middleware, perform some task after the
HTTP response has already been sent to the browser
Flysystem / Cloud Storage in Laravel 5
The Laravel Flysystem integration provides simple to use
drivers for working with local filesystems, Amazon S3, and
Rackspace Cloud Storage.
Recommended