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