Skip to content

Commit 4a826de

Browse files
authored
Replace Laravel Excel with Spout.
1 parent 8cb9a6b commit 4a826de

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
[![Total Downloads](https://img.shields.io/packagist/dt/yajra/laravel-datatables-export.svg)](https://packagist.org/packages/yajra/laravel-datatables-export)
77
[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://packagist.org/packages/yajra/laravel-datatables-export)
88

9-
This package is a plugin of [Laravel DataTables](https://github.com/yajra/laravel-datatables) for handling server-side exporting using Queue, Laravel Excel and Livewire.
9+
This package is a plugin of [Laravel DataTables](https://github.com/yajra/laravel-datatables) for handling server-side exporting using Queue, Spout and Livewire.
1010

1111
## Requirements
1212

1313
- [PHP >=7.4](http://php.net/)
1414
- [Laravel 8.x](https://github.com/laravel/framework)
1515
- [Laravel Livewire](https://laravel-livewire.com/)
16+
- [Spout](https://github.com/box/spout)
1617
- [Laravel DataTables 9.x](https://github.com/yajra/laravel-datatables)
1718
- [jQuery DataTables v1.10.x](http://datatables.net/)
1819

@@ -96,6 +97,16 @@ Column::make('mobile')->exportFormat('00000000000'),
9697

9798
The format above will treat mobile numbers as text with leading zeroes.
9899

100+
## Numeric Fields Formatting
101+
102+
The package will auto-detect numeric fields and can be used with custom formats.
103+
104+
```phpt
105+
Column::make('total')->exportFormat('0.00'),
106+
Column::make('count')->exportFormat('#,##0'),
107+
Column::make('average')->exportFormat('#,##0.00),
108+
```
109+
99110
## Date Fields Formatting
100111

101112
The package will auto-detect date fields when used with a valid format or is a DateTime instance.

0 commit comments

Comments
 (0)