diff --git a/docs/get-started/powergrid-configuration.md b/docs/get-started/powergrid-configuration.md index d1a4a44..3587ad7 100644 --- a/docs/get-started/powergrid-configuration.md +++ b/docs/get-started/powergrid-configuration.md @@ -267,6 +267,26 @@ Run `powergrid:update` php artisan powergrid:update ``` +### OpenSpout version + +Powergrid uses OpenSpout v4 by default, but v5 supports is available since 6.8. In order to configure the package to use this version, you need to update the published configuration file. + +```php +// config/livewire-powergrid.php + +/* +|-------------------------------------------------------------------------- +| Exportable class +|-------------------------------------------------------------------------- +| +| +*/ + +'exportable' => [ + 'default' => 'openspout_v4',// [!code --] + 'default' => 'openspout_v5',// [!code ++] +``` + ## Advanced Configuration ### Custom Namespace diff --git a/docs/table-features/exporting-data.md b/docs/table-features/exporting-data.md index e83b0cd..4b8a015 100644 --- a/docs/table-features/exporting-data.md +++ b/docs/table-features/exporting-data.md @@ -8,13 +8,15 @@ Here you will find: ## Install OpenSpout -In order to use the export function, you must install the [OpenSpout package](https://github.com/openspout/openspout) v4.x. To do this run the following command in your terminal: +In order to use the export function, you must install the [OpenSpout package](https://github.com/openspout/openspout). PowerGrid supports OpenSpout v4 and v5, depending on your requirements. To do this run the following command in your terminal: ```bash -composer require openspout/openspout:^4.0 +composer require openspout/openspout:^4.0 # or ^5.0 ``` +In order to use OpenSpout v5, you need to update [Powergrid configuration](/get-started/powergrid-configuration.html#openspout-version). + ## Enable Data Export To enable Data Exporting, follow the steps described below.