I'll have JSON and try to disassemble and save it in database:
{
"token": "f56445c24ad84e9c452f3ca6ef91e90beb2aef21",
"participant": "ZuP0rsny3MhqLC0",
"data": {
"orgs": [{
"org1": {
"attribute": [{
"name": "val",
"inn": "val",
"kpp": "val"
}],
"tickets": [{
"ticket1": [{
"account_uid": "val",
"created_at": "val",
"title": "val",
"text": "val",
"status": "val",
"priority": "val",
"fullname": "val",
"workaddr": "val",
"phone": "val",
"email": "val",
"workstart": "val",
"workend": "val",
"dispetcher": "val",
"responsible": "val",
"closed_at": "val",
"file": "val"
}]
}]
}
}]
}
}
I'll try to save it to db with using use Illuminate\Http\Request(Request $request), but can't given access to array org1 and ticket.
Misstake:
Undefined array key "org1"
Which way to move? Thnx