Skip to content

Commit d700e9d

Browse files
Laravel 10.x Compatibility (#335)
* Bump dependencies for Laravel 10 * Update GitHub Actions for Laravel 10 * fix for L10 --------- Co-authored-by: Freek Van der Herten <[email protected]>
1 parent a7a0119 commit d700e9d

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

.github/workflows/run-tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,18 @@ jobs:
1010
matrix:
1111
os: [ubuntu-latest]
1212
php: [8.1, 8.0]
13-
laravel: [9.*, 8.*]
13+
laravel: [9.*, 8.*, 10.*]
1414
dependency-version: [prefer-lowest, prefer-stable]
1515
include:
16+
- laravel: 10.*
17+
testbench: 8.*
1618
- laravel: 9.*
1719
testbench: 7.*
1820
- laravel: 8.*
1921
testbench: ^6.23
2022
exclude:
23+
- laravel: 10.*
24+
php: 8.0
2125
- laravel: 9.*
2226
php: 7.4
2327

composer.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,24 @@
2020
"ext-intl": "*",
2121
"ext-json": "*",
2222
"graham-campbell/guzzle-factory": "^5.0",
23-
"guzzlehttp/guzzle": "^7.4",
24-
"illuminate/cache": "^8.73|^9.0",
25-
"illuminate/config": "^8.73|^9.0",
26-
"illuminate/console": "^8.73|^9.0",
27-
"illuminate/container": "^8.73|^9.0",
28-
"illuminate/contracts": "^8.73|^9.0",
29-
"illuminate/events": "^8.73|^9.0",
30-
"illuminate/filesystem": "^8.73|^9.0",
31-
"illuminate/notifications": "^8.73|^9.0",
32-
"illuminate/support": "^8.73|^9.0",
23+
"guzzlehttp/guzzle": "^7.4|^7.2",
24+
"illuminate/cache": "^8.73|^9.0|^10.0",
25+
"illuminate/config": "^8.73|^9.0|^10.0",
26+
"illuminate/console": "^8.73|^9.0|^10.0",
27+
"illuminate/container": "^8.73|^9.0|^10.0",
28+
"illuminate/contracts": "^8.73|^9.0|^10.0",
29+
"illuminate/events": "^8.73|^9.0|^10.0",
30+
"illuminate/filesystem": "^8.73|^9.0|^10.0",
31+
"illuminate/notifications": "^8.73|^9.0|^10.0",
32+
"illuminate/support": "^8.73|^9.0|^10.0",
3333
"laravel/slack-notification-channel": "^2.4",
3434
"spatie/ssl-certificate": "^1.22|^2.1.2",
3535
"spatie/url": "^2.0.0"
3636
},
3737
"require-dev": {
3838
"mockery/mockery": "^1.4",
39-
"illuminate/testing": "^8.73|^9.0",
40-
"orchestra/testbench": "^6.23|^7.0",
39+
"illuminate/testing": "^8.73|^9.0|^10.0",
40+
"orchestra/testbench": "^6.23|^7.0|^8.0",
4141
"phpunit/phpunit": "^9.5"
4242
},
4343
"autoload": {

src/Models/Monitor.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,13 @@ class Monitor extends Model
2323

2424
protected $appends = ['raw_url'];
2525

26-
protected $dates = [
27-
'uptime_last_check_date',
28-
'uptime_status_last_change_date',
29-
'uptime_check_failed_event_fired_on_date',
30-
'certificate_expiration_date',
31-
];
32-
3326
protected $casts = [
3427
'uptime_check_enabled' => 'boolean',
3528
'certificate_check_enabled' => 'boolean',
29+
'uptime_last_check_date' => 'datetime',
30+
'uptime_status_last_change_date' => 'datetime',
31+
'uptime_check_failed_event_fired_on_date' => 'datetime',
32+
'certificate_expiration_date' => 'datetime',
3633
];
3734

3835
public function getUptimeCheckAdditionalHeadersAttribute($additionalHeaders): array

0 commit comments

Comments
 (0)