I have some JSON data; I decode that JSON data into an array, now I need to save the link column, id column and username column into my database table (the table name may be the product). So how to insert/save this column into the database in Laravel? My single node array structure format is below.
{
0 => {
+"attribution": null
+"tags": array:11
+"type": "image"
+"location": null
+"filter": "Normal"
+"created_time": ""
+"link": "https://www.url.com/p/myimage1/"
+"id": "4354"
+"user": {
+"username": "user"
+"profile_picture": "https://mypic.jpg"
+"id": "224"
+"full_name": ""
}
}
}