Duration
4 days
Introduction
Laravel is an open-source PHP framework, which is robust and easy to understand. It follows a model-view-controller design pattern. Laravel reuses the existing components of different frameworks which helps in creating a web application. The web application thus designed is more structured and pragmatic.
Laravel offers a rich set of functionalities which incorporates the basic features of PHP frameworks like CodeIgniter, Yii and other programming languages like Ruby on Rails. Laravel has a very rich set of features which will boost the speed of web development.
If you are familiar with Core PHP and Advanced PHP, Laravel will make your task easier. It saves a lot time if you are planning to develop a website from scratch. Moreover, a website built in Laravel is secure and prevents several web attacks.
Course Pre-requisite
Participants should have some knowledge of PHP to appreciate this course better.
Chapter 1 – Setting Up a Laravel Development Environment
- System Requirements
- Composer
- Local Development Environments
- Creating a New Laravel Project
- Laravel’s Directory Structure
- Configuration
- Up and Running
Chapter 2 – Routing and Controllers
- A Quick Introduction to MVC, the HTTP Verbs, and REST
- Route Definitions
- Route Groups
- Signed Routes
- Views
- Controllers
- Route Model Binding
- Route Caching
- Form Method Spoofing
- CSRF Protection
- Redirects
- Aborting the Request
- Custom Responses
Chapter 3 – Blade Templating
- Echoing Data
- Control Structures
- Template Inheritance
- View Composers and Service Injection
- Custom Blade Directives
Chapter 4 – Databases and Eloquent
- Configuration
- Seeding
- Query Builder
- Introduction to Eloquent
- Eloquent Events
Chapter 5 – Frontend Components
- Laravel Mix
- Frontend Presets and Auth Scaffolding
- Pagination
- Message Bags
- String Helpers, Pluralization, and Localization
Chapter 6 – Collecting and Handling User Data
- Injecting a Request Object
- Route Data
- Uploaded Files
- Validation
- Form Requests
- Eloquent Model Mass Assignment
Chapter 7 – Requests, Responses, and Middleware
- Laravel’s Request Lifecycle
- The Request Object
- The Response Object
- Laravel and Middleware
- Trusted Proxies
Chapter 8 – The Container
- A Quick Introduction to Dependency Injection
- Dependency Injection and Laravel
- The app() Global Helper
- How the Container Is Wired
- Binding Classes to the Container
- Constructor Injection in Laravel Framework Files
- Method Injection
- Facades and the Container
- Service Providers
Chapter 9 – User Authentication and Authorization
- The User Model and Migration
- Using the auth() Global Helper and the Auth Façade
- The Auth Controllers
- Auth::routes()
- The Auth Scaffold
- “Remember Me”
- Manually Authenticating Users
- Manually Logging Out a User
- Auth Middleware
- Email Verification
- Blade Authentication Directives
- Guards
- Auth Events
- Authorization (ACL) and Roles
Chapter 10 – Writing APIs
- The Basics of REST-Like JSON APIs
- Controller Organization and JSON Returns
- Reading and Sending Headers
- Eloquent Pagination
- Sorting and Filtering
- Transforming Results
- API Resources
- API Authentication with Laravel Passport
- API Token Authentication
- Customizing 404 Responses
Programme scope, delivery arrangements and suitability are confirmed during enquiry.