I am trying to generate array of object in Laravel-5.5 Swagger using body request in Laravel Model.
How should i achieve desired output ??
[
{
"user_name": "string",
"education": [
{
"degree": [
{
"year": "string",
"name": "string"
},
{
"year": "string",
"name": "string"
}
],
"hobby": [
{
"type": "string",
"description": "string"
},
{
"type": "string",
"description": "string"
}
]
}
]
}
]
can anyone please help me ?
Thanks.