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\Tabungan;
use Illuminate\Contracts\View\View;
use Maatwebsite\Excel\Concerns\FromView;
class TabunganExport implements FromView
{
/**
* @return \Illuminate\Support\Collection
*/
public function collection()
{
return Tabungan::all();
}
public function view(): View
{
return view('tabungan.export', [
'tabungan' => $this->collection()
]);
}
}