Skip to content

Commit 154155a

Browse files
authored
Update readme.md
1 parent 5d9d5c0 commit 154155a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

readme.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ php artisan make:jsontoclass
5555
],
5656
'followers' => (array)[
5757
'id' => '',
58-
'follower_user' => [
58+
'follower_user' => (object)[
5959
'first_name' => '',
6060
'last_name' => ''
6161
]
@@ -67,12 +67,14 @@ php artisan make:jsontoclass
6767

6868
Note: each object should have key name defined.
6969

70-
- If it is object please put `object`.
70+
- If it is object please define it as a `object`, see above.
7171
- If your components are array of object, please define it as a pure array.
72+
- You have to assign a value for each property, for example, an empty string `''` for `first_name`.
7273

7374
#### or JSON
7475

75-
Note: I have disabled JSON method, you need to convert JSON to PHP array yourself. (You can use online convert tool if necessary)
76+
- I have disabled JSON method, you need to convert JSON to PHP array yourself. (You can use online convert tool if necessary)
77+
- Then please follow Array Input instruction.
7678

7779

7880

0 commit comments

Comments
 (0)