Update docs/tutorials/add-route.md
Co-authored-by: Vincent (Wen Yu) Ge <wenyu1999@hotmail.com>
This commit is contained in:
parent
4809520462
commit
d865b5adee
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ App::post('/v1/storage/buckets/:bucketId/files')
|
|||
->inject('user')
|
||||
```
|
||||
|
||||
In the example above user object is injected to the route pre bounded using App::setResource().
|
||||
In the example above, the user object is injected into the route pre-bounded using `App::setResource()`.
|
||||
|
||||
```php
|
||||
App::setResource('user', function() {
|
||||
|
|
Loading…
Reference in a new issue