We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ef559c commit b4201e5Copy full SHA for b4201e5
docs/usage/methods.md
@@ -54,6 +54,7 @@ This returns an instance of `PostTranslation` using the given locale and will th
54
55
```php
56
$post->translateOrFail('fr'); // returns the french translation model
57
+$post->translateOrFail('xyz'); // throws a ModelNotFoundException
58
```
59
60
## hasTranslation\(?string $locale = null\)
0 commit comments