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 include Laravel 10, the third edition of this practical guide provides the definitive introduction to one of today's most popular 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 covers the entirely new auth and frontend tooling and other first-party tools introduced since the second edition.
Dive into features, including:
- Blade, Laravel's powerful custom templating tool
- Tools for gathering, validating, normalizing, and filtering user-provided data
- The Eloquent ORM for working with application databases
- The Illuminate request object and its role 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
- Specialty packages including Scout, Passport, Cashier, and more
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
- 6. Frontend Components
-
7. Collecting and Handling User Data
-
Injecting a Request Object
- $request->all()
- $request->except() and ->only()
- $request->has() and ->missing()
- $request->whenHas()
- $request->filled()
- $request->whenFilled()
- $request->mergeIfMissing()
- $request->input()
- $request->method() and ->isMethod()
- $request->integer(), ->float(), ->string(), and ->enum()
- $request->dump() and ->dd()
- Array Input
- JSON Input (and $request->json())
- Route Data
- Uploaded Files
- Validation
- Form Requests
- Eloquent Model Mass Assignment
- {{ Versus {!!
- Testing
- TL;DR
-
Injecting a Request Object
- 8. Artisan and Tinker
-
9. User Authentication and Authorization
- The User Model and Migration
- Using the auth() Global Helper and the Auth Facade
- routes/auth.php, Auth Controllers, and Auth Actions
- Breeze and Jetstream’s Frontend Templates
- “Remember Me”
- Password Confirmation
- Manually Authenticating Users
- Manually Logging Out a User
- Auth Middleware
- Email Verification
- Blade Authentication Directives
- Guards
- Auth Events
- Authorization 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
- About the Author
Product information
- Title: Laravel: Up & Running, 3rd Edition
- Author(s):
- Release date: September 2023
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781098153267
You might also like
video
React - The Complete Guide (Includes Hooks, React Router, and Redux) - Second Edition
**This course is now updated for React 18** Starting with an introduction to React concepts, you …
video
Modern JavaScript from the Beginning - Second Edition
This course is a comprehensive introduction to JavaScript, covering everything from the basics of variables, data …
video
Angular - The Complete Guide [2024 Edition]
Welcome to our comprehensive Angular course designed for web development professionals seeking to master this powerful …
book
Node.js: Novice to Ninja
Node.js: Novice to Ninja is your hands-on guide to learning everything needed to build a professional …