File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ FastExcel integration uses cursor behind the scene thus eager loaded columns wil
99## Usage
1010
11111 . Install ` fast-excel ` using ` composer require rap2hpoutre/fast-excel ` .
12- 2 . Create a dataTable class ` php artisan datatables:make Users `
12+ 2 . Create a dataTable class ` php artisan datatables:make Users ` .
13133 . Adjust ` UsersDataTable ` as needed.
14144 . Set property ` $fastExcel = true ` .
1515
1616``` php
1717class UsersDataTable extends DataTable
1818{
19- protected $fastExcel = true;
19+ protected bool $fastExcel = true;
2020
2121 ...
2222}
@@ -33,7 +33,7 @@ class UsersDataTable extends DataTable
3333class UsersDataTable extends DataTable
3434{
3535 protected $fastExcel = true;
36- protected $fastExcelCallback = false;
36+ protected bool $fastExcelCallback = false;
3737
3838```
3939
@@ -46,9 +46,9 @@ Just override the `fastExcelCallback` method:
4646``` php
4747class UsersDataTable extends DataTable
4848{
49- protected $fastExcel = true;
49+ protected bool $fastExcel = true;
5050
51- public function fastExcelCallback()
51+ public function fastExcelCallback() \Closure
5252 {
5353 return function ($row) {
5454 return [
@@ -59,4 +59,4 @@ class UsersDataTable extends DataTable
5959 }
6060
6161...
62- ```
62+ ```
You can’t perform that action at this time.
0 commit comments