Skip to content

Commit

Permalink
add exception case to the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Gummibeer committed Jan 28, 2020
1 parent 1ef559c commit b4201e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/usage/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ This returns an instance of `PostTranslation` using the given locale and will th

```php
$post->translateOrFail('fr'); // returns the french translation model
$post->translateOrFail('xyz'); // throws a ModelNotFoundException
```

## hasTranslation\(?string $locale = null\)
Expand Down

0 comments on commit b4201e5

Please sign in to comment.