Lesson-8-intro-to-Laravel
Lesson-8-intro-to-Laravel
Introduction to Laravel
PHP Framework
1
Session One Learning Objectives
• At the end of this Session/Topic, the Learner should
be able to:
2
Introduction
• 3
Introduction(cont.)
4
Laravel Installation Steps
• Install Composer
• Install Laravel
• Configure Laravel
5
Dev Tools Required
WAMP packaged
by Bitnami
6
Supportive Websites
7
Directory Structure Of Laravel
Application
8
Laravel: Main Application
Folders
9
The App Directory
Directory Purpose
10
The App Directory(cont.)
• This directory contains our controllers, middleware,
and form requests.
Http
• Almost all of the backend to handle requests entering
our application will be placed here.
12
The App Directory(cont.)
• This directory is not there by default but can be created by using the php
artisan make:mail command.
Mail
• This directory contains all of our classes that represent emails sent by
application.
• This directory is not there by default but can be created by using the php
artisan make:notification command.
Notifications
• This directory contains all of the “transactional” notifications that are
sent by our application.
• This directory is not there by default but can be created by using the php
artisan make:policy command.
Policies
• This directory contains the authorization policy classes which are used to
determine if a user can access or change a specific data or not.
• This directory is not there by default but can be created by using the php
Rules artisan make:rule command.
• This directory contains the self-created validation rule objects which are
used to encapsulate complicated validation logic in a simple object.
13
The Bootstrap Directory
14
The config directory
• This directory contains all the configuration files
related to database, mail, session, services, etc.
15
The database Directory
• This directory contains database migrations, model
factories, and seeds.
16
The public Directory
17
The resources Directory
• This directory contains the frontend of the
application.
18
The routes directory:
• This directory contains all the route definitions of
the application.
19
The storage Directory:
• This directory contains the compiled Blade
templates, file based sessions, file caches, and other
files generated by framework.
20
The tests Directory:
• This directory contains all of our automated tests
which are required to ensure that the application is
working as per expectations or not.
21
The vendor Directory:
• This directory contains all the dependencies
downloaded through Composer needed by our
framework.
22
Middleware
• Middleware provide a convenient mechanism for
filtering or examining HTTP requests entering your
application.
25
The end
Thank you
26