SlideShare a Scribd company logo
Laravel
“The PHP Framework For Web Artisans”
By: - Ashish Kumar
Why Framework?
(Legacy Code Problems)
• Spaghetti Code
• Limited Code Re-Use
• Multiple Code Styles
• Security vulnerabilities
What is Framework
• An essential supporting structure of a building, vehicle,
or object.
• A basic structure underlying a system, concept, or text
• Software Framework:
– an abstraction in which software providing generic
functionality can be selectively changed by additional user-
written code, thus providing application-specific software
• A software framework is 80% of your application
already written for you.
Why Laravel ?
• Taylor Otwall, a .NET developer in Arkansas
(USA), was using an early version of
CodeIgniter when the idea for Laravel came to
him.
• “I couldn't add all the features I wanted to” ,
he says, “without mangling the internal code
of the framework”.
• He wanted something leaner, simpler, and
more flexible.
Trends of PHP Framework
Laravel?
Non-MVC Vs MVC
Model-View-Controller- Architecture
Model
• it represents the data to the user.
• This level defines where the application’s data
objects are stored.
• The model doesn’t know anything about views
and controllers. So, whenever there are changes
done in the model it will automatically notify
observers that the changes are made.
• The model may be a single object or a structure
of objects.
Views
• A view is a visual representation of the MVC
model.
• This level creates an interface to show the
actual output to the user.
• However, a view will not display anything
itself. It is the controller or model that tells
view what to display to the user.
• It also handles requests from the user and
informs controller.
Controller
• Controller is a level which acts like a brain of the
entire MVC system.
• A controller also acts as a link between a user
and the system.
• The Controller is responsible for controlling the
application logic and acts as the coordinator
between the View and the Model.
• The Controller receives an input from the users
via the View, then processes the user's data with
the help of Model and passes the results back to
the View.
Benefits
• Faster development process
• Ability to provide multiple views
• Loads Very fast
• Modification does not affect the entire model
• MVC model returns the data without
formatting
• SEO friendly Development platform
MVC - Laravel
THE EVOLUTION OF LARAVEL
• Laravel 1 (6/2011)
• Laravel 2 (11/2011)
• Laravel 3 (2/2012)
• Laravel 4 (5/2013)
• Laravel 5 (2/2015)
• Current Version is 5.5
Prerequisites
Course Items
• Laravel Fundamentals
– Installing Composer
– Installing Laravel
– Routing
– Views
– Databases
– Creating tables
– Migrations
– Models
– Blade
• Creating a Login/Registration Web App
– Project Source Code
– Setting Up New Project
– Seeding and displaying books
– Login Form
– Logging In
– Laravel Filters
– User Registration
Composer
• It’s not a package Manager
• It’s a dependency manager
• It deals with packages or libraries but it
manage on a per-project basis.
• PHP 5.3.2+ to run
• To test(command):
– Composer –v
Laravel 5.5 Installation
• Server Requirement
– PHP >= 7.0.0
– OpenSSL PHP Extension
– PDO PHP Extension
– Mbstring PHP Extension
– Tokenizer PHP Extension
– XML PHP Extension
• Via Composer:
– composer global require "laravel/installer”
– laravel new blog
– Composer install

More Related Content

PPTX
4. Introduction to ASP.NET MVC - Part I
PDF
Laravel and CodeIgniter: pros & cons
PPTX
test_automation_POC
PPTX
SenchaCon 2016: The Changing Landscape of JavaScript Testing - Joel Watson an...
PPTX
Fast Track introduction to ASP.NET MVC
PDF
Kentico and MVC
PPTX
Using MVC with Kentico 8
PPTX
ATLAS Automation POC
4. Introduction to ASP.NET MVC - Part I
Laravel and CodeIgniter: pros & cons
test_automation_POC
SenchaCon 2016: The Changing Landscape of JavaScript Testing - Joel Watson an...
Fast Track introduction to ASP.NET MVC
Kentico and MVC
Using MVC with Kentico 8
ATLAS Automation POC

What's hot (20)

PPTX
Developing for the Atlassian Ecosystem
PPTX
Mvc framework
PPTX
Asp.net mvc 5 course module 1 overview
PPTX
Spring
PPTX
What to Expect from Sahi Pro
PPTX
Using the Kentico CMS API
PPTX
Asp.net mvc presentation by Nitin Sawant
PPT
Code igniter overview
PPTX
MVC 6 Introduction
PPTX
SchemaCrawler
PPTX
Keeping Pace with Product Evolution - UI Automation Framework Guidelines
PPTX
Module2
PDF
View controllers: The Right Way
PPTX
Introduction to ASP.NET MVC
PPTX
ASP .NET MVC
PPTX
Getting started with MVC 5 and Visual Studio 2013
PPTX
Serverless patterns v3 public
PPT
MVC Architecture in ASP.Net By Nyros Developer
PDF
Pal gov.tutorial3.session7
PPSX
Asp.net mvc
Developing for the Atlassian Ecosystem
Mvc framework
Asp.net mvc 5 course module 1 overview
Spring
What to Expect from Sahi Pro
Using the Kentico CMS API
Asp.net mvc presentation by Nitin Sawant
Code igniter overview
MVC 6 Introduction
SchemaCrawler
Keeping Pace with Product Evolution - UI Automation Framework Guidelines
Module2
View controllers: The Right Way
Introduction to ASP.NET MVC
ASP .NET MVC
Getting started with MVC 5 and Visual Studio 2013
Serverless patterns v3 public
MVC Architecture in ASP.Net By Nyros Developer
Pal gov.tutorial3.session7
Asp.net mvc
Ad

Similar to Laravel session 1 (20)

PPTX
Laravel overview
PPTX
Introduction Asp.Net Core, MVC, Docker (Linux), Postman and Swagger
PPTX
What-is-Laravel and introduciton to Laravel
PDF
Laravel Web Development: A Comprehensive Guide
PPTX
Web presentation
PPTX
JavaScript MVC Frameworks: Backbone, Ember and Angular JS
PDF
Laravel Framework Notes Web Techonologies
PPTX
laravel.pptx
PPTX
Frameworks Galore: A Pragmatic Review
PPTX
MVC Framework
PPTX
ASP.NET Core Demos Part 2
PPTX
Architectural Design & Patterns
PPTX
Laravel : A Fastest Growing Kid
PPTX
Laravel vs Codeigniter, Which is Better PHP Framework_.pptx
PDF
Prominent Back-end frameworks to consider in 2022!
PDF
Web application development with laravel php framework version 4
PPTX
Mvc presentation
PDF
A Comprehensive Guide to Laravel for Web App Development
PPTX
MWLUG 2015 - An Introduction to MVC
PDF
13 Advantages of Using Laravel for Web Development.pdf
Laravel overview
Introduction Asp.Net Core, MVC, Docker (Linux), Postman and Swagger
What-is-Laravel and introduciton to Laravel
Laravel Web Development: A Comprehensive Guide
Web presentation
JavaScript MVC Frameworks: Backbone, Ember and Angular JS
Laravel Framework Notes Web Techonologies
laravel.pptx
Frameworks Galore: A Pragmatic Review
MVC Framework
ASP.NET Core Demos Part 2
Architectural Design & Patterns
Laravel : A Fastest Growing Kid
Laravel vs Codeigniter, Which is Better PHP Framework_.pptx
Prominent Back-end frameworks to consider in 2022!
Web application development with laravel php framework version 4
Mvc presentation
A Comprehensive Guide to Laravel for Web App Development
MWLUG 2015 - An Introduction to MVC
13 Advantages of Using Laravel for Web Development.pdf
Ad

Recently uploaded (20)

PPTX
How a Careem Clone App Allows You to Compete with Large Mobility Brands
PDF
The Role of Automation and AI in EHS Management for Data Centers.pdf
PDF
Perfecting Gamer’s Experiences with Performance Testing for Gaming Applicatio...
PDF
Convert Thunderbird to Outlook into bulk
PDF
PTS Company Brochure 2025 (1).pdf.......
DOCX
The Five Best AI Cover Tools in 2025.docx
PDF
A REACT POMODORO TIMER WEB APPLICATION.pdf
PDF
Microsoft Teams Essentials; The pricing and the versions_PDF.pdf
PDF
A Practical Breakdown of Automation in Project Management
PPTX
Odoo Consulting Services by CandidRoot Solutions
PPTX
Presentation of Computer CLASS 2 .pptx
PDF
Micromaid: A simple Mermaid-like chart generator for Pharo
PPTX
Visualising Data with Scatterplots in IBM SPSS Statistics.pptx
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Best Practices for Rolling Out Competency Management Software.pdf
PPTX
Services offered by Dynamic Solutions in Pakistan
PPTX
10 Hidden App Development Costs That Can Sink Your Startup.pptx
PDF
Community & News Update Q2 Meet Up 2025
DOCX
The Future of Smart Factories Why Embedded Analytics Leads the Way
PDF
IEEE-CS Tech Predictions, SWEBOK and Quantum Software: Towards Q-SWEBOK
How a Careem Clone App Allows You to Compete with Large Mobility Brands
The Role of Automation and AI in EHS Management for Data Centers.pdf
Perfecting Gamer’s Experiences with Performance Testing for Gaming Applicatio...
Convert Thunderbird to Outlook into bulk
PTS Company Brochure 2025 (1).pdf.......
The Five Best AI Cover Tools in 2025.docx
A REACT POMODORO TIMER WEB APPLICATION.pdf
Microsoft Teams Essentials; The pricing and the versions_PDF.pdf
A Practical Breakdown of Automation in Project Management
Odoo Consulting Services by CandidRoot Solutions
Presentation of Computer CLASS 2 .pptx
Micromaid: A simple Mermaid-like chart generator for Pharo
Visualising Data with Scatterplots in IBM SPSS Statistics.pptx
How Creative Agencies Leverage Project Management Software.pdf
Best Practices for Rolling Out Competency Management Software.pdf
Services offered by Dynamic Solutions in Pakistan
10 Hidden App Development Costs That Can Sink Your Startup.pptx
Community & News Update Q2 Meet Up 2025
The Future of Smart Factories Why Embedded Analytics Leads the Way
IEEE-CS Tech Predictions, SWEBOK and Quantum Software: Towards Q-SWEBOK

Laravel session 1

  • 1. Laravel “The PHP Framework For Web Artisans” By: - Ashish Kumar
  • 2. Why Framework? (Legacy Code Problems) • Spaghetti Code • Limited Code Re-Use • Multiple Code Styles • Security vulnerabilities
  • 3. What is Framework • An essential supporting structure of a building, vehicle, or object. • A basic structure underlying a system, concept, or text • Software Framework: – an abstraction in which software providing generic functionality can be selectively changed by additional user- written code, thus providing application-specific software • A software framework is 80% of your application already written for you.
  • 4. Why Laravel ? • Taylor Otwall, a .NET developer in Arkansas (USA), was using an early version of CodeIgniter when the idea for Laravel came to him. • “I couldn't add all the features I wanted to” , he says, “without mangling the internal code of the framework”. • He wanted something leaner, simpler, and more flexible.
  • 5. Trends of PHP Framework
  • 9. Model • it represents the data to the user. • This level defines where the application’s data objects are stored. • The model doesn’t know anything about views and controllers. So, whenever there are changes done in the model it will automatically notify observers that the changes are made. • The model may be a single object or a structure of objects.
  • 10. Views • A view is a visual representation of the MVC model. • This level creates an interface to show the actual output to the user. • However, a view will not display anything itself. It is the controller or model that tells view what to display to the user. • It also handles requests from the user and informs controller.
  • 11. Controller • Controller is a level which acts like a brain of the entire MVC system. • A controller also acts as a link between a user and the system. • The Controller is responsible for controlling the application logic and acts as the coordinator between the View and the Model. • The Controller receives an input from the users via the View, then processes the user's data with the help of Model and passes the results back to the View.
  • 12. Benefits • Faster development process • Ability to provide multiple views • Loads Very fast • Modification does not affect the entire model • MVC model returns the data without formatting • SEO friendly Development platform
  • 14. THE EVOLUTION OF LARAVEL • Laravel 1 (6/2011) • Laravel 2 (11/2011) • Laravel 3 (2/2012) • Laravel 4 (5/2013) • Laravel 5 (2/2015) • Current Version is 5.5
  • 16. Course Items • Laravel Fundamentals – Installing Composer – Installing Laravel – Routing – Views – Databases – Creating tables – Migrations – Models – Blade • Creating a Login/Registration Web App – Project Source Code – Setting Up New Project – Seeding and displaying books – Login Form – Logging In – Laravel Filters – User Registration
  • 17. Composer • It’s not a package Manager • It’s a dependency manager • It deals with packages or libraries but it manage on a per-project basis. • PHP 5.3.2+ to run • To test(command): – Composer –v
  • 18. Laravel 5.5 Installation • Server Requirement – PHP >= 7.0.0 – OpenSSL PHP Extension – PDO PHP Extension – Mbstring PHP Extension – Tokenizer PHP Extension – XML PHP Extension • Via Composer: – composer global require "laravel/installer” – laravel new blog – Composer install

Editor's Notes

  • #2: What is Artisans: A worker in skilled trade, especially one that involves making things by hand.
  • #7: In computer science, syntactic sugar is syntaxwithin a programming language that is designed to make things easier to read or to express. It makes the language "sweeter" for human use: things can be expressed more clearly, more concisely, or in an alternative style that some may prefer.
  • #18: Suppose: You have a project that depends on a number of libraries. Some of those libraries depend on other libraries. Composer: Enables you to declare the libraries you depend on. Finds out which versions of which packages can and need to be installed, and installs them (meaning it downloads them into your project).
  • #19: Mbstring stands for multi-byte string functions. Mbstring is an extension of php used to manage non-ASCII strings. Mbstring is used to convert strings to different encodings. Multibyte character encoding schemes are used to express more than 256 characters in the regular byte wise coding system. Tokenization is the act of breaking up a sequence of strings into pieces such as words, keywords, phrases, symbols and other elements called tokens. Tokens can be individual words, phrases or even whole sentences. In the process oftokenization, some characters like punctuation marks are discarded.