Skip to content

Commit b4201e5

Browse files
committed
add exception case to the docs
1 parent 1ef559c commit b4201e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/usage/methods.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ This returns an instance of `PostTranslation` using the given locale and will th
5454

5555
```php
5656
$post->translateOrFail('fr'); // returns the french translation model
57+
$post->translateOrFail('xyz'); // throws a ModelNotFoundException
5758
```
5859

5960
## hasTranslation\(?string $locale = null\)

0 commit comments

Comments
 (0)