Skip to content

Commit 55c85f0

Browse files
committed
Add support for Statamic v5
1 parent 4d7f05a commit 55c85f0

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
> **Export entries and collections** from Statamic to a variety of formats including **XLSX, CSV, HTML and more**.
44
5+
### Supported versions
6+
- ✅ Statamic v4
7+
- ✅ Statamic v5
8+
59
## Features
610

711
Get your entries and collections ready in the format you need. Currently, we support the following formats:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"require": {
2020
"php": ">=8.1",
21-
"statamic/cms": "^v4.0.0",
21+
"statamic/cms": "^v4.0|^v5.0",
2222
"maatwebsite/excel": "^3.1"
2323
},
2424
"license": "MIT",

src/Exports/EntriesExport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function collection(): Collection
7676

7777
// Add the headers to the collection
7878
if (Arr::get($this->config, 'headers', true)) {
79-
$result = array_prepend($result, $keys->toArray());
79+
$result = Arr::prepend($result, $keys->toArray());
8080
}
8181

8282
return collect($result);

0 commit comments

Comments
 (0)