You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
461 B
PHP

<?php
namespace App\Exports;
use App\Models\Keuangan;
use Illuminate\Contracts\View\View;
use Maatwebsite\Excel\Concerns\FromView;
class KeuanganExport implements FromView
{
/**
* @return \Illuminate\Support\Collection
*/
public function collection()
{
return Keuangan::all();
}
public function view(): View
{
return view('keuangan.export', [
'keuangan' => $this->collection()
]);
}
}