Book description
What sets Laravel apart from other PHP web frameworks? Speed and simplicity, for starters. This rapid application development framework and its ecosystem of tools let you quickly build new sites and applications with clean, readable code. Fully updated to cover Laravel 5.8, the second edition of this practical guide provides the definitive introduction to one of today’s mostpopular web frameworks.
Matt Stauffer, a leading teacher and developer in the Laravel community, delivers a high-level overview and concrete examples to help experienced PHP web developers get started with this framework right away. This updated edition also covers Laravel Dusk and Horizon and provides information about community resources and other noncore Laravel packages.
Dive into features, including:
- Blade, Laravel’s powerful custom templating tool
- Tools for gathering, validating, normalizing, and filtering user-provideddata
- The Eloquent ORM for working with application databases
- The role of the Illuminate request object in the application lifecycle
- PHPUnit, Mockery, and Dusk for testing your PHP code
- Tools for writing JSON and RESTful APIs
- Interfaces for filesystem access, sessions, cookies, caches, and search
- Tools for implementing queues, jobs, events, and WebSocket event publishing
Publisher resources
Table of contents
- Preface
- 1. Why Laravel?
- 2. Setting Up a Laravel Development Environment
- 3. Routing and Controllers
- 4. Blade Templating
-
5. Databases and Eloquent
- Configuration
- Migrations
- Seeding
- Query Builder
-
Introduction to Eloquent
- Creating and Defining Eloquent Models
- Retrieving Data with Eloquent
- Inserts and Updates with Eloquent
- Deleting with Eloquent
- Scopes
- Customizing Field Interactions with Accessors, Mutators, and Attribute Casting
- Eloquent Collections
- Eloquent Serialization
- Eloquent Relationships
- Child Records Updating Parent Record Timestamps
- Eloquent Events
- Testing
- TL;DR
- 6. Frontend Components
- 7. Collecting and Handling User Data
- 8. Artisan and Tinker
-
9. User Authentication and Authorization
- The User Model and Migration
- Using the auth() Global Helper and the Auth Facade
- The Auth Controllers
- Auth::routes()
- The Auth Scaffold
- “Remember Me”
- Password Confirmation
- Manually Authenticating Users
- Manually Logging Out a User
- Auth Middleware
- Email Verification
- Blade Authentication Directives
- Guards
- Auth Events
- Authorization (ACL) and Roles
- Testing
- TL;DR
- 10. Requests, Responses, and Middleware
- 11. The Container
- 12. Testing
- 13. Writing APIs
- 14. Storage and Retrieval
- 15. Mail and Notifications
- 16. Queues, Jobs, Events, Broadcasting, and the Scheduler
- 17. Helpers and Collections
- 18. The Laravel Ecosystem
- Glossary
- Index
Product information
- Title: Laravel: Up & Running, 2nd Edition
- Author(s):
- Release date: April 2019
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781492041214
You might also like
book
Laravel: Up and Running
What sets Laravel apart from other PHP web frameworks? Speed and simplicity, for starters. This rapid …
video
Laravel Foundations: Basics to Every App
Laravel is a prominent member of a new generation of web frameworks. It is one of …
book
Laravel: Up & Running, 3rd Edition
What sets Laravel apart from other PHP web frameworks? Speed and simplicity, for starters. This rapid …
book
Domain-Driven Laravel: Learn to Implement Domain-Driven Design Using Laravel
Map concepts and ideas in domain-driven design (DDD) and transpose them into clean, testable, and quality …