<?php

namespace Modules\News\Entities;

use Illuminate\Database\Eloquent\Model;
use PhpOffice\PhpSpreadsheet\Style\NumberFormat;
use Maatwebsite\Excel\Concerns\FromCollection;
use Maatwebsite\Excel\Concerns\WithColumnFormatting;

class UsersExport implements FromCollection
{
    public function collection()
    {
        return News::all();
    }
//    public function columnFormats(): array
//    {
////        return [
////            'B' => NumberFormat::FORMAT_DATE_DDMMYYYY,
////            'C' => NumberFormat::FORMAT_CURRENCY_EUR_SIMPLE,
////        ];
//    }
}