Skip to content

Commit 177df16

Browse files
authored
Update jsontoclassgenerator.php
1 parent d343f99 commit 177df16

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

config/jsontoclassgenerator.php

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
return [
44
// namespace
5-
'namespace' => 'App\Test',
5+
'namespace' => 'App',
66
// default file store location
77
'file_location' => app_path(),
88
// this tells the generator which original source format that will be used for translation.
@@ -11,26 +11,31 @@
1111
# Please define an object instead of item
1212
# so each array needs to be defined with a key name, for example, 'message' is a key name
1313
'post' => [
14-
'author' => (object)[
14+
'author' => (object)[
15+
'id' => 1,
16+
'note' => null,
17+
'rating' => 4.6,
1518
'first_name' => '',
1619
'last_name' => '',
1720
],
18-
'comment' => (object)[
21+
'comment' => (object)[
1922
'user' => (object)[
23+
'is_active' => false,
2024
'first_name' => '',
2125
'last_name' => ''
2226
],
2327
'content' => ''
2428
],
2529
'followers' => (array)[
26-
'id' => '',
27-
'follower_user' => (object)[
30+
'id' => 1,
31+
'follower_users' => [
2832
'first_name' => '',
2933
'last_name' => ''
3034
]
3135
],
32-
'text' => '',
33-
'date' => '2019-01-01'
36+
'views' => 123,
37+
'text' => '',
38+
'date' => '2019-01-01'
3439
]
3540
],
3641
];

0 commit comments

Comments
 (0)