Skip to content

Carbon conflict versions #24961

@IgorDePaula

Description

@IgorDePaula
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions