Closed Bjornar97 closed 3 years ago
Example: dd(Carbon::parse("2021-09-04")->nextOpen());
It works if I add BusinessTime::enable('Illuminate\Support\Carbon', config("carbon.opening-hours"));
to AppServiceProvider.
Thanks for your report, I can reproduce it with 1.11.1 and checked 1.11.0 which is fine, so we have a regression in the very last patch.
You can exclude this version to fix it:
composer.json:
...
"require": {
...
"cmixin/business-time": "^1.11 !=1.11.1",
Fix released in 1.11.2, please try to upgrade and rerun. 🙏
It is working! Thank you for the incredibly fast fix 👍🏻
Im using Laravel 8
When Im trying to use methods from this package I get the exception shown below, however methods from business-day are working fine.
config/carbon.php: