We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d178cff commit 6d48e6bCopy full SHA for 6d48e6b
README.md
@@ -446,9 +446,7 @@ $router->group($attributes, function (Router $router) {
446
// Controller: App\Controllers\ShopController@getProduct
447
// Domain: shop.example.com
448
// Middleware: SampleMiddleware
449
- $router->get('/{id}', function ($id) {
450
- return 'Wow.';
451
- });
+ $router->get('/{id}', 'ShopController@getProduct');
452
});
453
454
$router->dispatch();
0 commit comments