Laravel-Backpack / PermissionManager

Admin interface for managing users, roles, permissions, using Backpack CRUD
http://backpackforlaravel.com
Other
527 stars 168 forks source link

Cannot install on a fresh project #286

Closed realtebo closed 2 years ago

realtebo commented 2 years ago

Bug report

What I did:

What I expected to happen:

It should simply works

What happened:

I faced this dependency problem

Using version ^6.0 for backpack/permissionmanager ./composer.json has been updated Running composer update backpack/permissionmanager Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1

  • backpack/permissionmanager[6.0.0, ..., 6.0.4] require spatie/laravel-permission ^3.0 -> found spatie/laravel-permission[3.0, ..., v3.x-dev] but it conflicts with your root composer.json require (^5.5).
  • backpack/permissionmanager[6.0.5, ..., 6.0.10] require spatie/laravel-permission ^4.0|^3.0 -> found spatie/laravel-permission[3.0, ..., v3.x-dev, 4.0.0, ..., v4.x-dev] but it conflicts with your root composer.json require (^5.5).
  • Root composer.json requires backpack/permissionmanager ^6.0 -> satisfiable by backpack/permissionmanager[6.0.0, ..., 6.0.10].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

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

What I've already tried to fix it:

Nothing, I don't know what to do now. I don't want to downgrade any packages

Backpack, Laravel, PHP, DB version:

PHP VERSION:

PHP 7.4.25 (cli) (built: Oct 20 2021 09:29:27) ( NTS Visual C++ 2017 x64 ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies

LARAVEL VERSION:

v8.79.0@8091f07558ff4a890435ff9d25fa9aca0189ad63

BACKPACK VERSION:

4.1.63@c3a09d64090cc15c51df7898889d763aaa335260

DB VERSION:

Mariadb 10.5

tabacitu commented 2 years ago

Haha, just pushed support for spatie/laravel-permission v5 today, I think 1 min after you tried it. If you try again now, you should be able to pull 6.0.11 which has v5 support - let me know if not 😀

tabacitu commented 2 years ago

Closing as I'm pretty sure it'll work in 6.0.11 - just tried it myself. Again, please let me know if it doesn't @realtebo and we'll reopen.

realtebo commented 2 years ago

It works !!!!!! Thanks.

I am happy we are working with a paid 'unlimited license'
And yesterday we bought also DevTools. We LOVE your work.

tabacitu commented 2 years ago

Thank you @realtebo 🙏 Made my day.