Skip to content

How to get Select field displayUsingLabels instead of value! #175

@RealityGamin

Description

@RealityGamin

When using:

(new DownloadExcel)->withHeadings()->askForFilename(),

everything looks great, except the select statement as an example:

Select::make('Category')->options([
                '0' => 'Certification',
                '1' => 'Vendor/Manufacturer',
                '2' => 'HSE',
                '3' => 'Management/Softskills',
            ])->displayUsingLabels()->nullable()->sortable()->textAlign('center'),

Will make an excel sheet with 0, 1, 2, 3 rather than the actual values

any idea how to resolve such issue please :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions