Я использую Laravel 5.7 Framework, когда я использую SetAutoFilter в Excel, он дает мне ошибку - PullRequest
1 голос
/ 29 мая 2019

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);
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...