0% found this document useful (0 votes)
6 views15 pages

MVCPPT 1

Uploaded by

siyalohia8
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)
6 views15 pages

MVCPPT 1

Uploaded by

siyalohia8
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/ 15

Academic Session 2025-26

ODD Semester Jul-Dec 2025

UNIVERSITY INSTITUTE OF COMPUTING


Bachelor of Computer Application(BC201)
Semester-VI
Advance Web Development using PHP
(23CAH-302)
Unit No.1 Chapter No. 1 Lecture No.1.1.1
Topic : __MVC(Model view controller)
Gurpreet Kaur E12934 Assistant professor
Learning Objectives
• Master Advanced Features
Understand service containers, facades, custom commands, and middleware.
• Secure Applications
Implement authentication, authorization, and prevent common
vulnerabilities (XSS, CSRF, SQLi).
• Optimize Performance
Use caching, queues, and query optimization to boost speed and efficiency.
• Develop RESTful APIs
Build, secure, and document APIs with Sanctum/Passport and API Resources.
• Create Laravel Packages
Build reusable packages and manage them with Composer
2
Course Objectives
• Understand, analyze and apply the role of languages like HTML,
CSS, XML, JavaScript, PHP
• Analyze a web project and identify its elements and attributes in
comparison to traditional projects.
• Understand, analyze and build dynamic web pages using MVC.
• Understand, analyze and build web applications using Laravel

22/09/2025 3
22/09/2025 4
-1 MVC Lecture Hours:30
Introduction Introduction to MVC, uses of MVC framework, Advantages and dis-advantages of
MVC

Laravel Introduction to Laravel, how laravel better than other frameworks, steps to install and configure laravel Project, Laravel directory structure.

Routing Creating route file, route file functions, uses of route functions, Controller: Creating Controller in laravel, creating functions in controller, get
requested data in controller, accessing form data in controller, Connecting controller with route file.

Experiment-1 Write the step for installing laravel application.

Experiment-2 Write the code to perform different type of routing:


1. Basic Routing
2. Route parameters
3. Named Routes

22/09/2025 5
Introduction MVC

• MVC stands for Model-View-Controller, which is a software design pattern commonly used for developing
user interfaces. It divides an application into three interconnected components:
• Model:
• Represents the data and the business logic of the application.
• It directly manages the data, logic, and rules of the application. It responds to requests for information
(usually from the controller) and updates the view when the data changes.
• View:
• Represents the user interface (UI) of the application.
• It displays the data from the model in a format that is easy for users to understand and interact with.
The view listens for changes in the model and updates itself accordingly.
• Controller:
• Acts as an intermediary between the model and the view.
• It takes user input from the view, processes it (often altering the model), and then updates the view to
reflect changes in the data.

22/09/2025 6
Working of the MVC
framework

22/09/2025 7
Features of MVC
• It provides a clear separation of business logic, UI logic, and input
logic.
• It offers full control over your HTML and URLs which makes it easy to
design web application architecture.
• It is a powerful URL-mapping component using which we can build
applications that have comprehensible and searchable URLs.
• It supports Test Driven Development (TDD).

22/09/2025 8
The MVC architectural
• The MVC architectural pattern allows us to adhere to the following design
principles:
1. Divide and conquer. The three components can be somewhat independently
designed.
2. Increase cohesion. The components have stronger layer cohesion than if the
view and controller were together in a single UI layer.
3. Reduce coupling. The communication channels between the three components
are minimal and easy to find.
4. Increase reuse. The view and controller normally make extensive use of
reusable components for various kinds of UI controls. The UI, however, will
become application-specific, therefore it will not be easily reusable.
5. Design for flexibility. It is usually quite easy to change the UI by changing the
view, the controller, or both.

22/09/2025 9
Next Lecture

Advantages of MVC
Disadvantages of MVC

Next Lecture

22/09/2025 10
Quiz/ FAQ’s

• What does MVC stand for?


• Which part of MVC handles database interaction in Laravel?
• Name a benefit of using the MVC architecture.
• The View directly communicates
Quiz/ FAQ’s with the Model in MVC.

22/09/2025 11
Class wise Feedback
Class-Wise Feedback

22/09/2025 12
Relevant learning resources

• https://codecourse.com
• https://laracasts.com
• https://www.youtube.com/watch?v=MYyJ4PuL4pY
relevant learning resources

22/09/2025 13
Links and Books

Text books

• Laravel Design Patterns and Best Practices - Book by Arda Kilicdagi and HIbrahim Yilmaz
• Laravel: Up and Running: A Framework for Building Modern PHP Apps - Book by Matt Stauffer

References books
• Professional WordPress: Design and Development by Brad Williams
• Step-By-Step WordPress for Beginners: How to Build a Beautiful Website on Your Own Domain from
Scratch by Mike Taylor
Links
1.https://www.w3schools.com/php/
2. https://www.tutorialspoint.com/laravel/index.htm
3. https://www.tutorialspoint.com/laravel/index.htm
4. https://www.tutorialspoint.com/laravel/laravel_overview.htm

22/09/2025 14
THANK YOU

15

You might also like