Laravel in a Container
Routes & controllers
Lesson 2 of 4
A URL maps to a controller method. Follow the request from route definition to a typed parameter.
What you'll learn
- Define routes that map URLs to controller actions
- Capture route parameters like {id}
- See the request lifecycle: route → controller → response
Members only
A free account unlocks this lesson and every other one.
Runnable challenges, knowledge checks, and progress that syncs across your devices. No card needed.
Not sure yet? Try the free lesson first: The Dockerized setup