Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erro ao implementar JWT #217

Open
paulodias-dev opened this issue Nov 2, 2023 · 0 comments
Open

Erro ao implementar JWT #217

paulodias-dev opened this issue Nov 2, 2023 · 0 comments

Comments

@paulodias-dev
Copy link

Descrição Geral do Problema
Estou tentando implementar JWT porém sem sucesso.
gostaria da ajuda de vocês.

Meu ambiente:
PHP 8.1.24
Laravel Framework 8.83.27
Composer version 2.5.8

Problema Encontrado

Detalhar problema - Utilize Markdown ou Gist para códigos
`composer require tymon/jwt-auth
./composer.json has been updated
Running composer update tymon/jwt-auth
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires laravel/framework ^10.0, found laravel/framework[v10.0.0, ..., 10.x-dev] but the package is fixed to v8.83.27 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Problem 2
- Root composer.json requires laravel/sanctum ^3.2, found laravel/sanctum[v3.2.0, ..., 3.x-dev] but the package is fixed to v2.15.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Problem 3
- spatie/laravel-ignition[2.0.0, ..., 2.3.1] require illuminate/support ^10.0 -> found illuminate/support[v10.0.0, ..., 10.x-dev] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires spatie/laravel-ignition ^2.0 -> satisfiable by spatie/laravel-ignition[2.0.0, ..., 2.3.1].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require tymon/jwt-auth:*" to figure out if any version is installable, or "composer require tymon/jwt-auth:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.`

Abordagem

Você já tentou alguma solução, descreva aqui.


Atualização 1

Se precisar atualizar a sua pergunta, adicione seções como essa.


Solução

Se o problema foi resolvido, adicione uma seção de solução como essa

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

No branches or pull requests

1 participant