- Update the composer.json file and change the version of the package to
^11.0
:
"require": {
"yajra/laravel-datatables-buttons": "^11.0"
}
-
Run
composer update
to update the package. -
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.
public function collection(): Collection|LazyCollection
{
return $this->collection;
}