add export excel report tourisms

This commit is contained in:
arifal
2025-03-19 16:16:10 +07:00
parent 5e1c9f3a2e
commit cf998455e0
7 changed files with 127 additions and 11 deletions

View File

@@ -0,0 +1,15 @@
<?php
namespace App\Http\Controllers\Api;
use App\Exports\ReportTourismExport;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Maatwebsite\Excel\Facades\Excel;
class ReportTourismsController extends Controller
{
public function export_excel(){
return Excel::download(new ReportTourismExport, 'laporan-pariwisata.xlsx');
}
}