Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/get-started/powergrid-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions docs/table-features/exporting-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down