Skip to content
This repository was archived by the owner on Jul 16, 2021. It is now read-only.

Upgrade nesbot/carbon to version 2 #1313

Open
iget-master opened this issue Sep 12, 2018 · 4 comments
Open

Upgrade nesbot/carbon to version 2 #1313

iget-master opened this issue Sep 12, 2018 · 4 comments

Comments

@iget-master
Copy link

iget-master commented Sep 12, 2018

Just noticed that nesbot/carbon package received a new major version, with many improvements over version 1:

  • Released new internationalization system
  • Added 60+ new locales
  • Added 100+ new methods
  • Added local settings system
  • Added immutability
  • Added CarbonTimeZone

and more (that's the changelog for the first beta, some things changed between it and the stable version)

Would be great to have it on Laravel. Didn't checked yet all the changes to look for breaking changes, but looks that there's no big changes there.

@kylekatarnls
Copy link

This is our proposal for allowing Carbon 2 and CarbonImmutable: laravel/framework#25320

@kylekatarnls
Copy link

It's merged to be released in 5.8, if you want it in a lower version you can force it using composer aliases as described in the documentation at this page: https://carbon.nesbot.com/#gettingstarted

@alirza143
Copy link

How to update carbon in laravel

@kylekatarnls
Copy link

Laravel 5.8 and greater versions use Carbon 2 by default, if you want it in a lower version you can force it using composer aliases as described in the documentation at this page: https://carbon.nesbot.com/#gettingstarted

@iget-master maybe you could close this issue as it's done.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants