I have a Variable $deliveryname
Array with the following information
[
{
"id":7,
"name":"Delivery2",
"email":"delibery2@hotmail.com",
"email_verified_at":null,
"password":"$2y$10$SID2yPM.hNsgHCCFh3BeXuk1Bylqsxl39DXPdYaXKZ00FvzSXCJju",
"remember_token":null,
"created_at":"2021-06-15 05:07:16",
"updated_at":"2021-06-15 05:07:16",
"auth_token":null,
"phone":"456465465",
"default_address_id":0,
"delivery_pin":"Y11FN",
"delivery_guy_detail_id":3,
"avatar":null,
"is_active":1,
"tax_number":null
}
]
I need to get the key "name" value that would be "Delivery2"
I have this code to create the variable in php but it doesn't work
$deliveryname2 = $deliveryname["name"];
Use Laravel