shoaibansari
5 months ago

How to create 3 array marge?

Posted 5 months ago by shoaibansari

i have 3 array users,songs and album i want result in one array but user return in obj in array and songs and albums showing multiple array

{
"status": 1,
"message": "Record found",
"data": [
{
"user_id": "1ce4d300-3ff1-11e9-a989-6942ff8dd2bc",
"first_name": "New",
"last_name": "Album",
"type": "Artist",
"image": "http://olxseventyseven.com/dooi/public/public/images/userImages/image.png"
},
{
"user_id": "323b1220-59f5-11e9-9a83-4f672e44b594",
"first_name": "New",
"last_name": "Album",
"type": "Artist",
"image": "http://olxseventyseven.com/dooi/public/public/images/userImages/image.png"
},
[
{
"song_id": "0bd7c460-44c0-11e9-adbe-411f0f8e0ad0",
"song_title": "New Album",
"type": "song",
"album_title": ""
},
{
"song_id": "41b98fc0-40d4-11e9-87c0-5bbc34880c07",
"song_title": "New Album",
"type": "song",
"album_title": "New Album"
},
{
"song_id": "99864e10-44c0-11e9-9593-61f667a9d73a",
"song_title": "New Album",
"type": "song",
"album_title": ""
}
],
[
{
"id": "a1d46970-40d0-11e9-846a-7fa973825ea0",
"artist_id": "1ce4d300-3ff1-11e9-a989-6942ff8dd2bc",
"title": "New Album",
"image": "http://olxseventyseven.com/dooi/public/artist/songs/album/cover-images/45903cb3f024be15b81de7dd33cd7ee8.jpg",
"description": "dasdadasdasdasd",
"type": "album",
"created_at": "2019-03-07 12:00:42",
"updated_at": "2019-03-07 12:00:42",
"songs_count": 2,
"album_id": "a1d46970-40d0-11e9-846a-7fa973825ea0"
}
]
]
}

Please sign in or create an account to participate in this conversation.