DbExportColumns.php 601 Bytes
<?php

namespace App\Enums;

use App\Enums\EnumTraits\EnumToArray;

enum DbExportColumns: string
{
    use EnumToArray;

    case job_title = ['column' => 'job_titles.name', 'title' => 'Должность'];
    case surname = ['column' => 'users.surname', 'title' => 'Фамилия'];
    case name_man = ['column' => 'users.name_man', 'title' => 'Имя'];
    case surname2 = ['column' => 'users.surname2', 'title' => 'Отчетство'];
    case email = ['column' => 'users.email', 'title' => 'Почта'];
    case telephone = ['column' => 'users.telephone', 'title' => 'Телефон'];
}