<?php

    namespace App\Exports;

    use Illuminate\Database\Eloquent\Collection;
    use Maatwebsite\Excel\Concerns\FromCollection;

    class MaterialExport implements FromCollection
    {

        public function collection()
        {
            return new Collection([
                [
                    'material',
                    'barcode',
                    'unit',
                    'sub_unit',
                    'category',
                    'cost_riel',
                    'cost_usd',
                ],
            ]);
        }
    }
