Directory : /home/aplikasiposinfo/www/hayyumart.com/app/Exports/ |
Current File : /home/aplikasiposinfo/www/hayyumart.com/app/Exports/PelangganExport.php |
<?php namespace App\Exports; use App\Pelanggan; use Maatwebsite\Excel\Concerns\FromCollection; class PelangganExport implements FromCollection { /** * @return \Illuminate\Support\Collection */ public function collection() { return Pelanggan::select('kd_pelanggan','nm_pelanggan','alamat','no_telepon')->get(); } }