I use DataTables as Service from Yajra in my Laravel application.
I have a collection like this :
Collection {#1178
#items: array:2 [
0 => array:7 [
"email" => "user1@example.com"
"id" => 6
"emailBlacklisted" => false
"smsBlacklisted" => false
"modifiedAt" => "2019-02-05T17:20:17.723+01:00"
"listIds" => array:2 [
0 => 2
1 => 3
]
"attributes" => {#1139
+"NAME": "Doe"
+"FIRSTNAME": "John"
}
]
1 => array:7 [
"email" => "user2@example.com"
"id" => 1
"emailBlacklisted" => false
"smsBlacklisted" => false
"modifiedAt" => "2019-02-05T21:12:04.094+01:00"
"listIds" => array:1 [
0 => 2
]
"attributes" => {#1143}
]
]
}
In my blade view I show email value with {{ $email }} -> Simple
I think this is a very easy problem for you ...
But I can't display the value of attributes key. (I want to show the NAME : Doe). -> attributes is an object inside my collection.
Thank you for helping me unlock...