File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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
6868Note: 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
You can’t perform that action at this time.
0 commit comments