Guide Book
Guide Book
A reference you can read front to back or dip into. Every chapter explains the syntax, and most topics have a π Behind the scenes section you can open to see what Python is actually doing, the details classes usually skip. Look for π§ Scenario cards for real-world uses, and press Try it on any example, then open the Inspect tab to look inside.
- Chapter 1How a request becomes a responseThe journey from `public/index.php` to the bytes a browser receives β and the one object that makes it all fit together.
- Chapter 2The service containerAutomatic dependency injection, binding and resolving, singletons and contextual bindings β the machine the whole framework is built on.
- Chapter 3Service providers & configurationWhere every binding is registered, why `register` and `boot` are separate, and how `.env`, config files and caching fit together.
- Chapter 4Facades, helpers & contractsWhat `Route::get()` really does, why facades are not static calls, and how to choose between a facade, a helper and an injected contract.
- Chapter 5RoutingVerbs, parameters and constraints, named routes, groups, model binding and fallbacks β plus how the router decides which route wins.
- Chapter 6Middleware & the pipelineThe onion model, before and after work, parameters and groups, terminable middleware β and the pipeline class that powers it all.
- Chapter 7Requests, validation & responsesReading input safely, the validator and form requests, and every way to build a response.
- Chapter 8BladeHow a template becomes compiled PHP, the directive set worth knowing, layouts and components, and why `{{ }}` is the security boundary.
- Chapter 9The database layerMigrations, the query builder, bindings and why they matter, transactions, and how to see the SQL Laravel actually runs.
- Chapter 10EloquentModels, mass assignment, relationships, eager loading and the N+1 problem, accessors, casts, scopes and events.
- Chapter 11Events, queues & cacheDecoupling with events and listeners, moving work off the request with queues, and the cache API β including the locks that stop two workers doing the same job.
- Chapter 12Artisan & testingWriting console commands, the scheduler, and the fakes and helpers that make a Laravel application testable end to end.