File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 8
8
Laravel has built-in casting for ` date ` & ` datetime ` types, but if you want to use ISO 8061 durations with the native
9
9
` DateInterval ` class, or Carbon's ` CarbonInterval ` you're out of luck.
10
10
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
12
12
casts feature.
13
13
14
14
## Installation
Original file line number Diff line number Diff line change 12
12
"homepage" : " https://github.com/atymic/laravel-dateinterval-cast" ,
13
13
"require" : {
14
14
"php" : " ^7.3" ,
15
- "laravel/framework" : " ^7.0"
15
+ "laravel/framework" : " ^7.0 || ^8.0 "
16
16
},
17
17
"require-dev" : {
18
18
"phpunit/phpunit" : " ^9.0" ,
19
- "orchestra/testbench" : " ^5.0" ,
19
+ "orchestra/testbench" : " ^5.0 || ^6.0 " ,
20
20
"phpstan/phpstan" : " ^0.12.9"
21
21
},
22
22
"minimum-stability" : " dev" ,
You can’t perform that action at this time.
0 commit comments