Skip to content

Commit d3e51cb

Browse files
authored
feat: laravel 8 support (#4)
1 parent 30fa525 commit d3e51cb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Laravel has built-in casting for `date` & `datetime` types, but if you want to use ISO 8061 durations with the native
99
`DateInterval` class, or Carbon's `CarbonInterval` you're out of luck.
1010

11-
This package provides two custom casts (for `DateInterval` and `CarbonInterval` respectively) using Laravel 7.x's custom
11+
This package provides two custom casts (for `DateInterval` and `CarbonInterval` respectively) using Laravel 7.x/8.x's custom
1212
casts feature.
1313

1414
## Installation

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
"homepage": "https://github.com/atymic/laravel-dateinterval-cast",
1313
"require": {
1414
"php": "^7.3",
15-
"laravel/framework": "^7.0"
15+
"laravel/framework": "^7.0 || ^8.0"
1616
},
1717
"require-dev": {
1818
"phpunit/phpunit": "^9.0",
19-
"orchestra/testbench": "^5.0",
19+
"orchestra/testbench": "^5.0 || ^6.0",
2020
"phpstan/phpstan": "^0.12.9"
2121
},
2222
"minimum-stability": "dev",

0 commit comments

Comments
 (0)