Skip to content

Commit 1a5d1a4

Browse files
committed
Update docs how it works image and small fixes
1 parent 9f52c5f commit 1a5d1a4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class Item extends Model
115115
protected $translatable = [
116116
'name'
117117
];
118-
118+
119119
/**
120120
* The model used to get translatios.
121121
*
@@ -144,10 +144,10 @@ $posts = Post::withTranslations()->get();
144144
$posts = Post::withTranslations(['en', 'da'])->get();
145145

146146
// Loads specific locale translations
147-
$posts = Post::withTranslation('da')->get();
147+
$posts = Post::withTranslations('da')->get();
148148

149149
// Loads current locale translations
150-
$posts = Post::withTranslation('da')->get();
150+
$posts = Post::withTranslations('da')->get();
151151
```
152152

153153
### Get default language value
@@ -205,7 +205,7 @@ This will update or create the translation for title of the post with the locale
205205

206206
### Query translatable Models
207207

208-
To search for a translated value, you can use the `whereTranslation` method.
208+
To search for a translated value, you can use the `whereTranslation` method.
209209
For example, to search for the slug of a post, you'd use
210210

211211
```php

images/current_working_model.png

-57.4 KB
Loading

0 commit comments

Comments
 (0)