public function get_sharevaluationoperationform() { $toReturn = collect(); $operations = Operation::groupBy('to_share_id')->get(); for ($i = 1; $i <= 10; $i++) { $row = collect(); // date $date = '12/12/2015'; $row->put('date', $date); // vehicle $vehicle = 'vehicle 1'; $row->put('vehicle', $vehicle); // value $value = '56'; $row->put('value', $value); $toReturn->push($row); } return $toReturn; }