framework: Carbon conflict versions
- Laravel Version: 5.6.25
- PHP Version: 7.2.7
- Database Driver & Version: mysql 5.7
Description:
I need some carbon methods, but this methos aren’t available. I tried update carbon, but…
Problem 1
- laravel/framework v5.6.25 requires nesbot/carbon 1.25.* -> satisfiable by nesbot/carbon[1.25.0] but these conflict with your requirements or minimum-stability.
- laravel/framework v5.6.25 requires nesbot/carbon 1.25.* -> satisfiable by nesbot/carbon[1.25.0] but these conflict with your requirements or minimum-stability.
- laravel/framework v5.6.25 requires nesbot/carbon 1.25.* -> satisfiable by nesbot/carbon[1.25.0] but these conflict with your requirements or minimum-stability.
- Installation request for laravel/framework (locked at v5.6.25, required as 5.6.*) -> satisfiable by laravel/framework[v5.6.25].
Steps To Reproduce:
Put in some view $model->created_at->localeMonth
var_dump($dt->localeMonth); // string(7) "Oktober"
var_dump($dt->shortLocaleMonth); // string(3) "Okt"
And I received this error
"Unknown getter 'localeMonth' (View: /home/igor/projetos/portalcea/resources/views/front/index.blade.php)"
This method above are available on Carbon docs
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 9
- Comments: 31 (8 by maintainers)
You can alias the new version as 1.25:
5.7 doesn’t lock the carbon version.
you don’t need to ping them, they are very aware of which Carbon version we are on.
Unfortunately this is not a simple upgrade, and since Carbon is relatively tightly integrated with Laravel, this upgrade will require some work.
Any moderator, could we lock this issue down? We seem to be getting a little off track.
Why closed without answer?