0% found this document useful (0 votes)
39 views19 pages

Study Guide 1 Introduction To Laravel Framework ELECTIVE 1

This document provides an introduction to the Laravel framework, an open-source PHP framework that follows the MVC architecture. It outlines the learning objectives, advantages, features, and versions of Laravel, emphasizing its capabilities in authentication, ORM, security, and task scheduling. The module aims to equip students with foundational knowledge of Laravel and its functionalities.

Uploaded by

michelleejunio23
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views19 pages

Study Guide 1 Introduction To Laravel Framework ELECTIVE 1

This document provides an introduction to the Laravel framework, an open-source PHP framework that follows the MVC architecture. It outlines the learning objectives, advantages, features, and versions of Laravel, emphasizing its capabilities in authentication, ORM, security, and task scheduling. The module aims to equip students with foundational knowledge of Laravel and its functionalities.

Uploaded by

michelleejunio23
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 19

ELECTIVE 1 -

WEB SYSTEMS
AND
TECHNOLOGIES
2
Module 1: Introduction to Laravel
Framework

By: Napoleon Camus M. Hermoso, MBA,


MIT
Module 1 - Introduction to Laravel
Framework Overview:
 Laravel is an open-source PHP framework. It also offers the rich set of
functionalities that incorporates the basic features of PHP frameworks such as
Codelgniter, Yii, and other programming languages like Ruby on Rails.

 This module, you will learn the basics of Laravel, its advantages and features
and different versions.

02/10/2025 2
LEARNING OBJECTIVES
 At the end of this module, students are expected to:
 Learn the basics of Laravel including its advantages and features,
different versions of the framework.

02/10/2025 3
Laravel: An Overview

 Laravel is a PHP framework that uses the


MVC architecture.
 where,
 Framework: It is the collection of methods,
classes, or files that the programmer uses, and
they can also extend its functionality by using
their code.
 Architecture: It is the specific design pattern
that the framework follows. Laravel is following
the MVC architecture.

02/10/2025 4
MVC Structure: An Overview
 The MVC structure means that the application is divided into three parts.
The (M) model defines the data model, (V) view presents data and (C)
controller defines logic and manipulates data.
o M: 'M' stands for Model. A model is a class that deals with a database.
o V: 'V' stands for View. A view is a class that deals with an HTML.
Everything that we can see on the application in the browser is the view
or the representation.
o C: 'C' stands for Controller. A controller is the middle-man that deals
with both model and view. A controller is the class that retrieves the data
from the model and sends the data to the view class

02/10/2025 5
Servlet/
Servlet PHP class  Interacts
 Takes user Filter
with
input
database.
(request  Execute
parameters). Model
business
 Interacts
logic.
with model
and view.

Controller
Client Databas
JSP Page e

 What user
sees on the
View screen.
 Generates UI
for the user.
MVC
Structure Server 02/10/2025 6
02/10/2025 7
Advantages of Laravel
 Creating authorization and authentication systems
 Every owner of the web application makes sure that unauthorized
users do not access secured or paid resources. It provides a simple
way of implementing authentication. It also provides a simple way of
organizing the authorization logic and controlling access to
resources.
 Integration with tools
 Laravel is integrated with many tools that build a faster app. It
is not only necessary to build the app but also to create a
faster app. Integration with the caching back end is one of the
major steps to improve the performance of a web app.
Laravel is integrated with some popular cache backends such
as Redis, and Memcached.
02/10/2025 8
Advantages of Laravel
 Mail service integration
 Laravel is integrated with the Mail Service. This service is
used to send notifications to the user's emails. It provides a
clean and simple API that allows you to send the email
quickly through a local or cloud-based service of your choice.
 Handling exception and configuration error
 Handling exception and configuration errors are the major
factors on the app's usability. The manners in which the
software app handles the errors have a huge impact on the
user's satisfaction and the app's usability. In Laravel, error
and exception handling is configured in the new Laravel
project.
02/10/2025 9
Advantages of Laravel
 Automation testing work
 Testing a product is very important to make sure that the software runs
without any errors, bugs, and crashes. We know that automation
testing is less time-consuming than manual testing, so automation
testing is preferred over the manual testing. Laravel is developed with
testing in mind.
 Separation of business logic code from presentation
code
 The separation between business logic code and presentation code
allows the HTML layout designers to change the look without
interacting with the developers. A bug can be resolved by the
developers faster if the separation is provided between the business
logic code and presentation code. We know that Laravel follows
the MVC architecture, so separation is already done.
02/10/2025 10
Advantages of Laravel
 Fixing most common technical vulnerabilities
 The security vulnerability is the most important example in web
application development. An American organization, i.e., OWASP
Foundation, defines the most important security vulnerabilities such as
SQL injection, cross-site request forgery, cross-site scripting, etc.
Developers need to consider these vulnerabilities and fix them before
delivery. Laravel is a secure framework as it protects the web application
against all the security vulnerabilities.
 Scheduling tasks configuration and management
 The web app requires some task scheduling mechanism to perform the
tasks in time for example, when to send out the emails to the subscribers
or when to clean up the database tables at the end of the day. To schedule
the tasks, developers need first to create the Cron entry for each task,
but Laravel command scheduler defines a command schedule which
requires a single entry on the server.
02/10/2025 11
Example of SQLi

02/10/2025 12
02/10/2025 13
Features of Laravel
 Authentication
 Authentication is the most important factor in a web application, and
developers need to spend a lot of time writing the authentication
code. Laravel makes a simpler authentication when Laravel is
updated to Laravel 5. Laravel contains an inbuilt authentication
system, you only need to configure models, views, and controllers
to make the application work.

 Innovative Template Engine


 Laravel provides an innovative template engine that allows
developers to create a dynamic website. The available widgets in
Laravel can be used to create solid structures for an application.

02/10/2025 14
Features of Laravel
 Effective ORM(Object Relational Mapping)
 Laravel contains an inbuilt ORM with easy PHP Active Record
implementation. An effective ORM allows the developers to query the
database tables by using simple PHP syntax without writing any SQL code.
It provides easy integration between the developers and database tables by
giving each of the tables its corresponding models.

 MVC Architecture Support


 Laravel supports MVC architecture. It provides a faster
development process as in MVC; one programmer can work on the
view while the other is working on the controller to create the
business logic for the web application. It provides multiple views for
a model, and code duplication is also avoided as it separates the
business logic from the presentation logic.

02/10/2025 15
Features of Laravel
 Secure Migration System
 Laravel framework can expand the database without allowing the
developers to put much effort every time to make changes, and the
migration process of Laravel is very secure and full-proof. In the
whole process, php code is used rather than SQL code.

 Unique Unit-testing
 Laravel provides a unique unit-testing. Laravel framework can run
several test cases to check whether the changes harm the web app
or not. In Laravel, developers can also write the test cases in their
own code.

02/10/2025 16
Features of Laravel
 Intact Security
 Application security is one of the most important factors in web application
development. While developing an application, a programmer needs to take
effective ways to secure the application. Laravel has an inbuilt web application
security, i.e., it itself takes care of the security of an application. It uses
"Bcrypt Hashing Algorithm" to generate the salted password means that the
password is saved as an encrypted password in a database, not in the form of
a plain text.

 Libraries and Modular


 Laravel is very popular as some Object-oriented libraries, and pre-installed
libraries are added in this framework, these pre-installed libraries are not
added in other php frameworks. One of the most popular libraries is
an authentication library that contains some useful features such as
password reset, monitoring active users, Bcrypt hashing, and CSRF
protection. This framework is divided into several modules that follow the php
principles apps.
02/10/2025 17
Features of Laravel
 Artisan allowing the developers to build responsive and modular
 Laravel framework provides a built-in tool for a command-line known
as Artisan that performs the repetitive programming tasks that do not allow
the php developers to perform manually. These artisans can also be used to
create the skeleton code, database structure, and their migration, so it
makes it easy to manage the database of the system. It also generates the
MVC files through the command line. Artisan also allows the developers to
create their own commands.

02/10/2025 18
Laravel Versions

 In 2011, Codeigniter was the most popular


framework used in php. It was widely used as
it was easy to learn and well documented.
Web developers created many projects by
using the CodeIgniter framework, but it lacked
certain essential features such as user
authorization and authentication. Taylor
Otwell started the development of Laravel to
provide an alternative of
the Codeigniter framework.

02/10/2025 19

You might also like