How can I add title and sum value of column in laravel excel version 3?
I get reference from here : https://laravel-excel.maatwebsite.nl/docs/3.0/getting-started/basics So I use version 3 My controller like this : public function exportToExcel(Request $request) { $data = $request->all(); $exporter = app()->makeWith(SummaryExport::class, compact('data')); return $exporter->download('Summary.xlsx'); } My script export to excel like this : namespace App\Exports; use App\Repositories\ItemRepository; use Maatwebsite\Excel\Concerns\FromCollection; use Maatwebsite\Excel\Concerns\Exportable; use Maatwebsite\Excel\Concerns\WithHeadings; class SummaryExport implements