Every request enters through public/index.php, which bootstraps the framework and creates a service container. The HTTP kernel then sends the request through global middleware, matches it to a route, and dispatches it to a controller or closure. Finally, a Response object is sent back to the browser.
← Laravel theorytheory 0/50 · 0%
Fundamentals · easy
2. Request Lifecycle
How a request flows through Laravel.
Check your understanding
1. Which file is the entry point for all HTTP requests?
2. What handles incoming HTTP requests before routing?