Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHAnderson authored Jan 30, 2022
1 parent c087a9e commit 6448b89
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ This is a direct implementation of [https://tools.ietf.org/html/draft-kelly-json

### [Read The Documentation](https://api-skeletons-laravel-hal.readthedocs.io/en/latest/index.html)

## Quick Look

```php
return $this->hydratorManager->resource($data)
->addLink('self', route('routeName::fetch', $class->id))
->addEmbeddedResource('example', $class->example)
->toArray();
```

## Quick Start

Expand Down

0 comments on commit 6448b89

Please sign in to comment.