Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

Laravel

No description
by

on 20 November 2014

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Laravel

L
arave
l

Objectices
To investigate the history, description and components of Laravel
History
PHP and
La
rav
el
Concatenation
Merging
PHP and Laravel
PHP and Laravel concatenation
Laravel 1
What is Laravel?
Laravel is a web application framework with expressive, elegant syntax.
Demonstration
Laravel attempts to ease common tasks such as authentication, sessions and routing.
La
rav
el's
Architecture
Looking into the Future
Laravel's Frame Work
Used by most developers
We cannot do without
each other!
Without PHP, we wouldn't work
-> Symfony
-> Composer
-> Eloquent
-> Blade
Components
A set of PHP Components, web application, framework and a community working together in harmony
Leading PHP framework to create websites and web applications, built on top of symfony components
A set of duplicated and reusable components on which PHP applications are built, eg. Drupal and eZ publish.
Eloquent ORM
-> This provides a beautiful simple active record
implementation for working with your database
-> Each database tool has a model which is used to
interact with that table
-> It assumes that every table has a primary
key called 'id'
Laravel version 1 was released in June 2011 to solve the difficulties experienced when using CodeIgniter PHP framework. Although this was the first release, the framework was already seen as impressive. However, at this point Laravel was not an MVC framework as yet.
History
Laravel 2
Laravel version 2 was released privately to developers on November 24, 2011. The creators made some concrete upgrades to the framework. These upgrades included: controller support, usage of inversion of control container. Due to controllers being added, the framework now officially became an MVC framework.
History
Laravel 3
Laravel 3 was released on February 22, 2012. This release focused mainly on unit test integration, database migrations and integration for "bundles"
About 5 months after Laravel 3 was released, the creator of the framework decided to re-write the whole framework from scratch as a set of packages distributed through “Composer” PHP dependency manager.
Present
Laravel 4 "Illuminate"
Laravel 4 was released on May 28, 2013. The framework experienced significant upgrade, with features such as: database seeding, message queues, built in mailer, and even more powerful Eloquent ORM featuring scopes.
Laravel 4 is the result of all previous development of the framework, looking into the bright future of PHP development.
Eloquent ORM
Composer
-> Tool for dependency management in PHP



-> It helps you to declare the dependent
libraries and installs them for you
-> Composer requires PHP 5.3.2 to run
Blade
-> Blase is a powerful, simple templating engine
provided with Laravel

-> It is driven by template inheritance and sections

-> All blade templates must use the
.blade.php extension

-> Blade can also be used to echo out texts,
do loops and write comments
Laravel's Frame Work
Software structure

Emphasis on modularity

Modularity: the degree to which a system's components may be separated and recombined

Users of MVC:
Ruby
ASP.NET
PHP Frameworks
CakePHP
Code Igniter

Framework Roles
M -> MODEL

V -> VIEW

C -> CONTROLLER
Model
application data and functions

View
Representation of the output eg html page

Controller
Handles the interaction between as well as the other 2 components of the structure


Framework Roles
Benefits
• Simplicity
• Easy recognizable structure
• Independent sections not affecting other pages
• Special commands
• dynamic

Laravel is accessible, yet powerful, providing powerful tools needed for large, robust applications.
Scenario
Client wants a site for a gallery of his/her products
What to do?

Code for products
MODEL
Gallery & list
VIEW
Product

CONTROLLER

After six months client asks for changing the order of products in the descending order
Addition
Components
Change the look?


fixed controller for the products
instantly recognize where to change instead of scanning 100s of flies

Eloquent
DB Connectors
MySQL
PostgreSQL
Auth
Cache
SQL Server
SQlite
Migrations
Config
Change up the views
Form Helpers
HTML Helpers
URL Helpers
Routing
Controllers
Models
Views
Redirects
Response

Unit Tests
DB Seeding
Mail
Queues
Facades
Command Line Interface
Demonstration
`
Full transcript