Ultimate Laravel for Modern Web Development: Build Robust and Interactive Enterprise-Grade Web Apps Using Laravel's MVC, Authentication, APIs, and Cloud Deployment 9788196782658

Unlock the Power of Laravel: Elevate Your Web Development Game! Key Features: - Master Laravel's Core Fundamentals

143 66 3MB

English Pages 255 Year 2024

Report DMCA / Copyright

DOWNLOAD EPUB FILE

Table of contents :
Cover Page
Title Page
Copyright Page
Dedication Page
About the Author
About the Technical Reviewer
Acknowledgements
Preface
Errata
Table of Contents
1. Getting Started with Laravel
Introduction
Structure
Introduction to Laravel
Preference for Laravel
Scalable
MVC Architecture
Community
Class Dependency Management
Eloquent ORM
Unique Features of Laravel
Database Seeding
Localization
Latest Version Release Changes
How to Upgrade
Dependencies
Minimum Stability
Public Path Binding
Redis Cache Tags
Database Expressions
Eloquent
Testing
Installation and Setup of Laravel Development Environment
Installing PHP
Mac
Windows
Installing Composer
Mac
Windows
Installing Laravel
Laravel Artisan
Core Concept
Conclusion
2. MVC Architecture in Laravel
Introduction
Structure
Overview of MVC Architecture
History
Separation of Components
MVC Architecture Pattern in the Context of Laravel
Design Principles
Reusability
Flexibility
Cohesion
Coupling
Design Independence in Components
MVC in Laravel
Key Features
SEO Friendly
Importance of SEO
Principles
Test Driven Development
Simultaneous Development
Maintainability and Extensibility
Models in Laravel
Views in Laravel
Controllers in Laravel
Conclusion
3. Routers and Views in Laravel
Introduction
Structure
Routers in Laravel
Introduction to Routers
Routes Directory
Router Methods
Types of Routers
Redirect Routes
View Routes
The Route List
Fallback Routes
Route Parameters
Optional Parameters
Regular Expressions Constraints
Regular Expressions
Regular Expressions Constraints
Route Groups
Middleware
Controllers
Subdomain Routing
Route Prefixes
Cross-origin Resource Sharing (CORS)
Caching
Views in Laravel
Creating Views
Views and View Extensions
Nested Views Directories
First Available View
Data and Views
Sharing Data
View Composers and Creators
View Composers
Multiple Views with Composer
View Creators
View Optimization
Conclusion
Points to Remember
4. Building Controllers and Blade Templates
Introduction
Structure
Controllers with Views in Laravel
Controllers
Resource Controllers
Constructor Injection
Method Injection
Redirects in Laravel
Redirect Helper
Redirecting to Named Routes
Redirecting to Controller Actions
Redirecting - Flashed Session Data
Directives in Laravel
Conditional Directives
Custom if Statements
Switch Directive
Auth Directive
Loops
Once Directive
Blade as Template Engines in Laravel
Data in Blade
HTML Entity Encoding
Components
Rendering Components
Passing Data
Layouts
Template Inheritance
Rendering Blade Templates
Rendering Blade Fragments
Conclusion
Points to Remember
5. Working with Eloquent ORM and Query Builder
Introduction
Structure
Eloquent in Laravel
Database Migrations
Primary Key
Timestamps
Eloquent Events
Query Builder in Laravel
Selects
Joins
Left Join
Advanced Joins
Advanced Where
Aggregates
Raw Expressions
Pessimistic Locking
Caching Queries
Eloquent Operations
Model Classes
Model Conventions
Table Name
Primary Key
UUID and ULID Keys
Database Connections
Retrieving Models
Collections
Chunking Results
Chunk Using Lazy Collections
Cursors
Advanced Subqueries
CRUD Operations on Models
Events
Conclusion
Points to Remember
6. Implementing Authentication and Authorization in Laravel
Introduction
Structure
Laravel’s built-in Authentication System
Laravel API Authentication Services
Passport
Sanctum
Customizing Authentication and Registration logic
HTTP Authentication
Stateless HTTP Authentication
Custom User Providers
User Provider Contract
Authenticatable Contract
Implementing Authorization Policies and Gates
Invalidating User Sessions
Password Management
Configuration
Routing
Authentication Custom Guards
Closure Request Guards
Invalidate Sessions across Multiple Devices
User Session Knowledge
Additional Authentication Methods
Authenticate a User Instance
Authenticate a User By ID
Authenticate a User Once
Securing Routes and Actions with Middleware
Middleware
Assigning Middleware To Routes
Middleware Groups
Sorting Middleware
Middleware Parameters
Terminable Middleware
Conclusion
Points to Remember
7. Developing APIs with Laravel
Introduction
Structure
Understanding APIs, REST
REST
SOAP
Resources, Collections and Nesting Relationships
Writing Resource
Relationships
Data Wrapping
Understanding Data Wrapping
Conditional Relationships
Resource Response
Laravel Passport
Installing and Setup
Configuration
Token Lifetimes
Overriding Default Models
Overriding Routes
Access Tokens
Client
JSON API
GET
POST
PUT
DELETE
Protecting Routes
Middleware
Access Token
Token Scopes
Defining a scope
Default Scope
Check Scope
Conclusion
Points to Remember
8. Testing and Debugging your Laravel Application
Introduction
Structure
Introduction to Testing in Laravel
Setting up Environment for Testing
Testing Lifecycle
Creating Tests
Running Tests
Parallel Execution of Tests
Reporting
HTTP Tests
Make a Request
Customizing Request Headers
Cookies
Authentication
Debugging Responses
Exception Handling
File Upload Testing
Debugging in Laravel
Conclusion
Points to Remember
9. E-mail and Notifications in Laravel
Introduction
Structure
Generating Notifications
Sending Notifications
Delivery Channels
Queuing Notifications
Delaying Notifications
Custom Notification Queue
Custom Notification Channel Queue
On-Demand Notifications
Mail Notifications
Customizing Email Components
Custom templates
Handling Raw Data
Tags and Metadata
Custom Symfony Message
Broadcast Notifications
Notification Events
Conclusion
Points to Remember
10. Deploying your Laravel App to Cloud
Introduction
Structure
Cloud Deployment Fundamentals
Cloud Providers Overview
Amazon Web Services
Heroku
Google Cloud
Laravel Application Deployment with Vapor
Installation
Installing the Vapor Core
Installing the Vapor Dashboard
Dashboard Authorization
Environment
Deployment
Hooks
Development
Configure OpenSSL
Domains
DNS Records
Custom Records
SSL Certificates
Add Domain to Environment
Troubleshooting
Conclusion
Points to Remember
Index

Ultimate Laravel for Modern Web Development: Build Robust and Interactive Enterprise-Grade Web Apps Using Laravel's MVC, Authentication, APIs, and Cloud Deployment
 9788196782658

  • 0 0 0
  • Like this paper and download? You can publish your own PDF file online for free in a few minutes! Sign Up
Recommend Papers