Directory : /home/aplikasiposinfo/public_html/ayam-canton.aplikasipos.info/app/Exports/ |
Current File : /home/aplikasiposinfo/public_html/ayam-canton.aplikasipos.info/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')->get(); } }