Skip to content

Commit 889d983

Browse files
committed
docs: add upgrade guide
1 parent 5203e4f commit 889d983

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

UPGADE.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# UPGRADE GUIDE
2+
3+
## Upgrade from 10.x to 11.x
4+
5+
1. Update the composer.json file and change the version of the package to `^11.0`:
6+
7+
```json
8+
"require": {
9+
"yajra/laravel-datatables-buttons": "^11.0"
10+
}
11+
```
12+
13+
2. Run `composer update` to update the package.
14+
15+
3. If you are using a custom class of laravel-excel to export the data, you need to update the collection method and include the return type `Collection|LazyCollection` in the method signature.
16+
17+
```php
18+
public function collection(): Collection|LazyCollection
19+
{
20+
return $this->collection;
21+
}
22+
```

0 commit comments

Comments
 (0)