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
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
ai tools demonstartion for schools and inter college
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Nekopoi APK 2025 free lastest update
PPTX
Odoo POS Development Services by CandidRoot Solutions
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
System and Network Administraation Chapter 3
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PPTX
Introduction to Artificial Intelligence
PDF
Softaken Excel to vCard Converter Software.pdf
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Design an Analysis of Algorithms I-SECS-1021-03
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Understanding Forklifts - TECH EHS Solution
ai tools demonstartion for schools and inter college
How to Choose the Right IT Partner for Your Business in Malaysia
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Navsoft: AI-Powered Business Solutions & Custom Software Development
Nekopoi APK 2025 free lastest update
Odoo POS Development Services by CandidRoot Solutions
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Adobe Illustrator 28.6 Crack My Vision of Vector Design
2025 Textile ERP Trends: SAP, Odoo & Oracle
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
System and Network Administraation Chapter 3
wealthsignaloriginal-com-DS-text-... (1).pdf
Introduction to Artificial Intelligence
Softaken Excel to vCard Converter Software.pdf
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Design an Analysis of Algorithms I-SECS-1021-03

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.