
Ultimate Laravel for Modern Web Development
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
Unlock the Power of Laravel: Elevate Your Web Development Game!
Book Description
The "Ultimate Laravel for Modern Web Development" is a comprehensive journey through Laravel, the PHP framework revolutionizing web development. This practical guide ensures a fluid progression from fundamentals to advanced techniques, making you a seasoned Laravel expert. The book begins with the fundamentals, seamlessly transitioning into the core of Laravel's MVC architecture. It then navigates through routers, views, controllers, and Blade templates, building a strong foundation for your projects.
As you progress, the book will uncover the power of Eloquent ORM and Query Builder, mastering efficient data handling. You will implement seamless authentication and authorization processes to ensure the security of your applications and develop robust APIs to enhance your application's functionality and connectivity.
The book will dive into the art of testing and debugging, refining your Laravel projects for optimal performance. It will delve into email and notifications, adding dynamic communication to your applications. Finally, you will learn the ins and outs of deploying your Laravel app to the cloud, bringing your creations to a global audience.
Table of Contents
1. Getting Started with Laravel
2. MVC Architecture in Laravel
3. Routers and Views in Laravel
4. Building Controllers and Blade Templates
5. Working with Eloquent ORM and Query Builder
6. Implementing Authentication and Authorization in Laravel
7. Developing APIs with Laravel
8. Testing and Debugging your Laravel Application
9. E-mail and Notifications in Laravel
10. Deploying your Laravel App to Cloud
Index
More details
Content
- 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
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.