File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ $post = Post::create($data);
6868echo $post->translate('fr')->title; // Mon premier post
6969```
7070
71- ### Filling multiple translations wrapped
71+ #### Filling multiple translations wrapped
7272
7373You may define a wrapper property when creating new translations. Set the ` translations_wrapper ` property in translatable config file:
7474``` php
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ $post = Post::create($data);
5757echo $post->translate('fr')->title; // Mon premier post
5858```
5959
60- ### Filling multiple translations wrapped
60+ #### Filling multiple translations wrapped
6161
6262You may define a wrapper property when creating new translations. Set the ` translations_wrapper ` property in translatable config file:
6363``` php
Original file line number Diff line number Diff line change @@ -227,11 +227,11 @@ public function it_creates_translations_using_mass_assignment_and_locales(): voi
227227 #[Test]
228228 public function it_creates_translations_using_wrapped_mass_assignment_and_locales (): void
229229 {
230- $ this ->app ->make ('config ' )->set ('translatable.translations_wrapper ' , 'translations ' );
230+ $ this ->app ->make ('config ' )->set ('translatable.translations_wrapper ' , '_translation_wrapper ' );
231231
232232 $ vegetable = Vegetable::create ([
233233 'quantity ' => 5 ,
234- 'translations ' => [
234+ '_translation_wrapper ' => [
235235 'en ' => ['name ' => 'Peas ' ],
236236 'fr ' => ['name ' => 'Pois ' ],
237237 ],
You can’t perform that action at this time.
0 commit comments