From df4e4fda7e86286f36d7d263e67d2b529e76924d Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Sat, 20 Nov 2021 22:01:44 +0100 Subject: [PATCH] Update files to fix spelling and improve documentation --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 15ace6b..d6948f2 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ composer require gac/routing Download the latest release from the [Releases page](https://github.com/gigili/PHP-routing/releases). -Don't forget to add these include statements to your php files: +Don't forget to add these `include_once` statements to your php files: ```php include_once "./Exceptions/CallbackNotFound.php"; @@ -107,6 +107,7 @@ When using chained methods either use `->save()` or `->add()` as the last method **NOTE** * `->save(true|false)` method can still be chained onto if needed + * Passing `false` (the default value is `true`) to the `->save()` method will preserve all the previous prefixes and middlewares in that chain * `->add()` **CAN NOT** be chained onto and should be the last call in chain ```php @@ -137,7 +138,7 @@ $routes #### Chained routes with multiple chains in one call -```php +```php $routes ->prefix("/test") ->middleware([ 'decode_token' ])