Skip to content

Commit

Permalink
Laravel 10.x Compatibility (#335)
Browse files Browse the repository at this point in the history
* Bump dependencies for Laravel 10

* Update GitHub Actions for Laravel 10

* fix for L10

---------

Co-authored-by: Freek Van der Herten <freek@spatie.be>
  • Loading branch information
laravel-shift and freekmurze committed Feb 17, 2023
1 parent a7a0119 commit d700e9d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@ jobs:
matrix:
os: [ubuntu-latest]
php: [8.1, 8.0]
laravel: [9.*, 8.*]
laravel: [9.*, 8.*, 10.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
- laravel: 8.*
testbench: ^6.23
exclude:
- laravel: 10.*
php: 8.0
- laravel: 9.*
php: 7.4

Expand Down
24 changes: 12 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,24 @@
"ext-intl": "*",
"ext-json": "*",
"graham-campbell/guzzle-factory": "^5.0",
"guzzlehttp/guzzle": "^7.4",
"illuminate/cache": "^8.73|^9.0",
"illuminate/config": "^8.73|^9.0",
"illuminate/console": "^8.73|^9.0",
"illuminate/container": "^8.73|^9.0",
"illuminate/contracts": "^8.73|^9.0",
"illuminate/events": "^8.73|^9.0",
"illuminate/filesystem": "^8.73|^9.0",
"illuminate/notifications": "^8.73|^9.0",
"illuminate/support": "^8.73|^9.0",
"guzzlehttp/guzzle": "^7.4|^7.2",
"illuminate/cache": "^8.73|^9.0|^10.0",
"illuminate/config": "^8.73|^9.0|^10.0",
"illuminate/console": "^8.73|^9.0|^10.0",
"illuminate/container": "^8.73|^9.0|^10.0",
"illuminate/contracts": "^8.73|^9.0|^10.0",
"illuminate/events": "^8.73|^9.0|^10.0",
"illuminate/filesystem": "^8.73|^9.0|^10.0",
"illuminate/notifications": "^8.73|^9.0|^10.0",
"illuminate/support": "^8.73|^9.0|^10.0",
"laravel/slack-notification-channel": "^2.4",
"spatie/ssl-certificate": "^1.22|^2.1.2",
"spatie/url": "^2.0.0"
},
"require-dev": {
"mockery/mockery": "^1.4",
"illuminate/testing": "^8.73|^9.0",
"orchestra/testbench": "^6.23|^7.0",
"illuminate/testing": "^8.73|^9.0|^10.0",
"orchestra/testbench": "^6.23|^7.0|^8.0",
"phpunit/phpunit": "^9.5"
},
"autoload": {
Expand Down
11 changes: 4 additions & 7 deletions src/Models/Monitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,13 @@ class Monitor extends Model

protected $appends = ['raw_url'];

protected $dates = [
'uptime_last_check_date',
'uptime_status_last_change_date',
'uptime_check_failed_event_fired_on_date',
'certificate_expiration_date',
];

protected $casts = [
'uptime_check_enabled' => 'boolean',
'certificate_check_enabled' => 'boolean',
'uptime_last_check_date' => 'datetime',
'uptime_status_last_change_date' => 'datetime',
'uptime_check_failed_event_fired_on_date' => 'datetime',
'certificate_expiration_date' => 'datetime',
];

public function getUptimeCheckAdditionalHeadersAttribute($additionalHeaders): array
Expand Down

0 comments on commit d700e9d

Please sign in to comment.