Skip to content

Commit

Permalink
Update files to fix spelling and improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gigili committed Nov 20, 2021
1 parent dadc09f commit df4e4fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -137,7 +138,7 @@ $routes

#### Chained routes with multiple chains in one call

```php
```php
$routes
->prefix("/test")
->middleware([ 'decode_token' ])
Expand Down

0 comments on commit df4e4fd

Please sign in to comment.