I run a query that returns a collection array with 7 elements -
$uniques = Analytics::fetchviews(Period::days(7))->take(7);
The results of the collection look like this:
2 => array:4 [▼ "date" => Carbon {
I would like to take out pageViews and uniquePageviews and work with these integers before passing the results to the view. How can I directly edit data in a collection?
source share