Routes map URIs to controllers or closures and are defined in routes/web.php or routes/api.php. Laravel supports GET, POST, PUT, PATCH, and DELETE route methods, plus route parameters like {id}. Named routes let you generate URLs with route() instead of hardcoding paths.
← Laravel theorytheory 0/50 · 0%
Routing · easy
3. Routing Basics
Defining routes in web.php.
Check your understanding
1. Where are typical browser-facing routes defined?
2. How do you generate a URL for a named route 'profile'?