Updated example for group parameters

This commit is contained in:
Simon Sessingø
2021-03-29 17:41:18 +02:00
parent 4b992f0a2f
commit 06ee78a48f
+2 -2
View File
@@ -659,8 +659,8 @@ You can also use parameters in your groups:
```php ```php
SimpleRouter::group(['prefix' => '/lang/{language}'], function ($language) { SimpleRouter::group(['prefix' => '/lang/{language}'], function ($language) {
SimpleRouter::get('/users', function () { SimpleRouter::get('/users', function ($language) {
// Matches The "/admin/users" URL // Matches The "/lang/da/users" URL
}); });
}); });
``` ```