Updated example for group parameters

This commit is contained in:
Simon Sessingø
2021-03-29 17:41:18 +02:00
parent 4b992f0a2f
commit 06ee78a48f

View File

@@ -659,8 +659,8 @@ You can also use parameters in your groups:
```php
SimpleRouter::group(['prefix' => '/lang/{language}'], function ($language) {
SimpleRouter::get('/users', function () {
// Matches The "/admin/users" URL
SimpleRouter::get('/users', function ($language) {
// Matches The "/lang/da/users" URL
});
});
```