Skip to content

Conversation

@yajra
Copy link
Owner

@yajra yajra commented Oct 6, 2021

This PR will allow setting of Excel's column format via Column builder definition:

Column::make('mobile')->exportFormat('00000000000'),
Column::make('total')->exportFormat(NumberFormat::FORMAT_CURRENCY_EUR_SIMPLE),

Ref: https://docs.laravel-excel.com/3.1/exports/column-formatting.html

The PR will also auto-detect date fields 😍

Column::make('report_date')->exportFormat('mm/dd/yyyy'),
Column::make('created_at'),
Column::make('updated_at')->exportFormat(NumberFormat::FORMAT_DATE_DATETIME),

@yajra yajra merged commit eda90b9 into master Oct 6, 2021
@yajra yajra deleted the export-format branch October 6, 2021 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants