Routing
Basic Routing
Route Parameters Required Parameters Optional Parameters Named Routes
Route Groups Middleware Namespaces Sub-Domain Routing Route Prefixes
Route Model Binding Implicit Binding Explicit Binding Form Method Spoofing Accessing The Current Route
Basic Routing
The most basic Laravel routes simply accept a URI and a Closure, providing a very simple and expressive method of defining routes:
Route::get('foo', function () {
return 'Hello World';
});
The Default Route Fi