<?php

namespace App\Exports;

use App\Models\Tutor;
use Maatwebsite\Excel\Concerns\FromCollection;
use Maatwebsite\Excel\Concerns\WithHeadings;

class TutorExport implements FromCollection, WithHeadings
{
    /**
     * @return \Illuminate\Support\Collection
     */
    public function collection()
    {
        return Tutor::all();
    }

    public function headings(): array
    {
        return [
            '#',
            'NAMA',
            'NIK',
            'ALAMAT',
            'FOTO'
        ];
    }
}
