Skip to content

Commit 6c6b8a1

Browse files
authored
Typo fixes
1 parent 0fa8762 commit 6c6b8a1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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 and Livewire.
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.
1010

1111
## Requirements
1212

@@ -35,7 +35,7 @@ php artisan queue:batches-table
3535
php artisan migrate
3636
```
3737

38-
#### Service Provider (Optional on Laravel 5.5)
38+
#### Service Provider (Optional since Laravel 5.5+)
3939

4040
`Yajra\DataTables\ExportServiceProvider::class`
4141

@@ -51,7 +51,7 @@ php artisan migrate
5151
<livewire:export-button :table-id="$dataTable->getTableId()" />
5252
```
5353

54-
2. On your `DataTable` class instance, use `WithExportQueue`
54+
2. On your `DataTable` class, use `WithExportQueue`
5555

5656
```phpt
5757
use Yajra\DataTables\WithExportQueue;
@@ -64,7 +64,7 @@ class PermissionsDataTable extends DataTable
6464
}
6565
```
6666

67-
3. Run your queue worker via `php artisan queue:work`.
67+
3. Run your queue worker. Ex: `php artisan queue:work`
6868

6969
## Export Filename
7070

@@ -88,17 +88,17 @@ You can set the export type by setting the property to `csv` or `xlsx`. Default
8888

8989
## Formatting Columns
9090

91-
You can format column by setting it via Column definition on you DataTable service class.
91+
You can format the column by setting it via Column definition on you DataTable service class.
9292

9393
```phpt
9494
Column::make('mobile')->exportFormat('00000000000'),
9595
```
9696

97-
The format above will treat mobile numbers with leading zeroes.
97+
The format above will treat mobile numbers as text with leading zeroes.
9898

9999
## Date Fields Formatting
100100

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

103103
```phpt
104104
Column::make('report_date')->exportFormat('mm/dd/yyyy'),
@@ -108,7 +108,7 @@ Column::make('updated_at')->exportFormat(NumberFormat::FORMAT_DATE_DATETIME),
108108

109109
## Valid Date Formats
110110

111-
Valid date formats can be adjust on `datatables-export.php` config file.
111+
Valid date formats can be adjusted on `datatables-export.php` config file.
112112

113113
```phpt
114114
'date_formats' => [

0 commit comments

Comments
 (0)