1/*
2$data is indeed an array, but it's made up of objects.
3
4Convert its content to array before creating it*/
5$data = array();
6foreach ($results as $result) {
7 $result->filed1 = 'some modification';
8 $result->filed2 = 'some modification2';
9 $data[] = (array)$result;
10 #or first convert it and then change its properties using
11 #an array syntax, it's up to you
12}
13Excel::create(....
14