count (): Параметр должен быть массивом или объектом, реализующим Счетное
return $this - > excel - > create($this - > getReportName(), function($excel) {
#Set standard properties on the file
$this - > setProperties($excel);
#Produce the tab
# @todo exctract tabs into their own classes
$excel - > sheet('Program List Report', function($sheet) {
$sheet - > loadView('reports.program.list.report')
- > with('programs', $this - > candidates)
- > setAutoFilter()
- > freezeFirstRow()
- > setColumnFormat($this - > getFormats());
});
#Set the includeSql = true to have SQL Printout tab
# includeSql should NEVER be true
for production reports
$this - > includeSqlTab($excel);
#Make the first sheet active
$excel - > setActiveSheetIndex(0);
}) - > store('xlsx', $this - > getReportPath(), true);