Skip to content

Instantly share code, notes, and snippets.

@lucenarenato
Created December 13, 2019 19:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucenarenato/1e8dfe8629bc7d1e3c53b1b4e7263191 to your computer and use it in GitHub Desktop.
Save lucenarenato/1e8dfe8629bc7d1e3c53b1b4e7263191 to your computer and use it in GitHub Desktop.
upgrade Carbon1 to Carbon2

Atualização do Carbon

Create new project when using the flowing command:

  • composer create-project laravel/lumen:"5.5.*" lumen55

composer promot msssage is as flows:

Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
    You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.

So we need upgrade illuminate/support package, or our Laravel teams need to upgrade Carbon package to Carbon2 that is need by illuminate/support.

Run - > composer update
Run the Path -> ./vendor/bin/upgrade-carbon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment