PK

ADDRLIN : /home/questend/public_html/subdomain/payroll.questend.com/app/Exports/
FLL :
Current File : /home/questend/public_html/subdomain/payroll.questend.com/app/Exports/EmployeesExport.php

<?php

namespace App\Exports;

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

class EmployeesExport implements FromCollection, WithHeadings
{
    public function collection()
    {
        return Employee::select(
            'emp_code',
            'name',
            'department',
            'designation',
            'email',
            'phone',
            'pan',
            'bank_account',
            'ifsc',
            'basic_salary',
            'status'
        )->get();
    }

    public function headings(): array
    {
        return [
            'Employee Code',
            'Name',
            'Department',
            'Designation',
            'Email',
            'Mobile',
            'PAN',
            'Bank Account',
            'IFSC',
            'Basic Salary',
            'Status'
        ];
    }
}


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

It looks like you found a glitch in the matrix...

← Back to Home