Skip to content

Commit 4f726cd

Browse files
committed
laravel dashboard v2 and laravel 8 support
1 parent bc55e0d commit 4f726cd

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

.github/workflows/run-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
matrix:
1111
os: [ubuntu-latest, windows-latest]
1212
php: [7.4]
13-
laravel: [7.*]
13+
laravel: [8.*]
1414
dependency-version: [prefer-lowest, prefer-stable]
1515
include:
16-
- laravel: 7.*
17-
testbench: 5.*
16+
- laravel: 8.*
17+
testbench: 6.*
1818

1919
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
2020

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
"require": {
2121
"php": "^7.4",
2222
"digikraaft/paystack-php": "^1.0",
23-
"illuminate/console": "^7.24",
24-
"illuminate/pagination": "^7.24",
25-
"illuminate/support": "^7.24",
26-
"spatie/laravel-dashboard": "^1.0"
23+
"illuminate/console": "^8.0",
24+
"illuminate/pagination": "^8.0",
25+
"illuminate/support": "^8.0",
26+
"spatie/laravel-dashboard": "^2.0"
2727
},
2828
"require-dev": {
2929
"phpunit/phpunit": "^9.0"

src/FetchCustomersDataFromPaystackApi.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ public function handle()
2020
$this->info('Fetching Paystack customers ...');
2121

2222
$customers = Customer::list(
23-
config('dashboard.tiles.paystack.customers.params') ?? []
23+
config('dashboard.tiles.paystack.customers.params') ?? [
24+
'perPage' => 5,
25+
]
2426
);
2527

2628
$customers = collect($customers->data)

0 commit comments

Comments
 (0)