File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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.
209209For example, to search for the slug of a post, you'd use
210210
211211``` php
You can’t perform that action at this time.
0 commit comments