Skip to content
Advertisement

Laravel – Multisheet Excel

I tried to export my data in multi sheet Excel. But I face the error like

SymfonyComponentErrorHandlerErrorFatalError Class AppExportsReportExport contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (MaatwebsiteExcelConcernsFromQuery::query)

MaatwebsiteExcelSheet::formatColumn(): Argument #2 ($format) must be of type string, array given, called in C:xampphtdocshealthcarevendormaatwebsiteexcelsrcSheet.php on line 395

My controller coding is

JavaScript

ReportExport

JavaScript

ReportGeneralExport

JavaScript

Using Providerid to get the data from the providerinfo table.

Advertisement

Answer

Your ReportGeneralExport class contains a lot of implements there.

I see WithTitle but no implementation of:

JavaScript

Either implement it or remove WithTitle from your implements.

I also see WithColumnFormatting but no implementation of:

JavaScript

Either implement it or remove WithColumnFormatting from your implements.

Also remove the ->get() from your query:

JavaScript

As per the documentation it says:

Be sure to not ->get() the results!

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement