Export Excel Invoice & Imporve Invoice
This commit is contained in:
14
app/Services/ExportExcelService.php
Normal file
14
app/Services/ExportExcelService.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services;
|
||||
|
||||
use App\Exports\ReportExport;
|
||||
use Maatwebsite\Excel\Facades\Excel;
|
||||
|
||||
class ExportExcelService
|
||||
{
|
||||
public function exportReport(array $filters = [], string $filename = 'report.xlsx')
|
||||
{
|
||||
return Excel::download(new ReportExport($filters), $filename);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user