jeremykenedy / laravel-roles

A Powerful package for handling roles and permissions in Laravel with GUI. Supports Laravel 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 6.0, 7.0, 8.0, and 9.0
MIT License
956 stars 196 forks source link

Unable to install library in Laravel 11.5 #209

Closed ks-dipeshc closed 1 week ago

ks-dipeshc commented 6 months ago

Hello,

When I trying to install package in laravel 11.5 it throws the following error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - jeremykenedy/laravel-roles[v1.0.0, ..., v1.0.1] require laravel/framework 5.4.* -> found laravel/framework[v5.4.0, ..., v5.4.36] but it conflicts with your root composer.json require (^11.0).
    - jeremykenedy/laravel-roles v1.1.1 requires laravel/framework 5.3.*|5.4.*|5.5.* -> found laravel/framework[v5.3.0, ..., v5.5.50] but it conflicts with your root composer.json require (^11.0).
    - jeremykenedy/laravel-roles v1.2.0 requires laravel/framework 5.3.*|5.4.*|5.5.*|5.6.* -> found laravel/framework[v5.3.0, ..., v5.6.40] but it conflicts with your root composer.json require (^11.0).
    - jeremykenedy/laravel-roles v1.3.0 requires laravel/framework 5.3.*|5.4.*|5.5.*|5.6.*|5.7.* -> found laravel/framework[v5.3.0, ..., v5.7.29] but it conflicts with your root composer.json require (^11.0).
    - jeremykenedy/laravel-roles[v1.4.0, ..., v1.7.0, v2.0.0, ..., v2.1.0] require laravel/framework 5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.* -> found laravel/framework[v5.3.0, ..., v5.8.38] but it conflicts with your root composer.json require (^11.0).
    - jeremykenedy/laravel-roles[v2.2.0, ..., v2.3.1] require laravel/framework 5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.* -> found laravel/framework[v5.3.0, ..., v5.8.38, v6.0.0, ..., v6.20.44] but it conflicts with your root composer.json require (^11.0).
    - jeremykenedy/laravel-roles[v2.3.3, ..., v2.9.0, v3.0.0, ..., v3.8.0, v4.0.0] require php ^7.2 -> your php version (8.2.3) does not satisfy that requirement.
    - jeremykenedy/laravel-roles[v5.0.0, ..., v5.1.0, v6.0.0, v7.0.0] require laravel/framework 5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.*|7.*|8.* -> found laravel/framework[v5.3.0, ..., v5.8.38, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27] but it conflicts with your root composer.json require (^11.0).
    - jeremykenedy/laravel-roles[v8.0.0, ..., v8.1.0, v9.0.0] require laravel/framework 5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.*|7.*|8.*|^9.0 -> found laravel/framework[v5.3.0, ..., v5.8.38, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.16] but it conflicts with your root composer.json require (^11.0).
    - jeremykenedy/laravel-roles[v9.1.0, ..., v9.1.1, v10.0.0] require laravel/framework 5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.*|7.*|8.*|^9.0|^10.0 -> found laravel/framework[v5.3.0, ..., v5.8.38, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.16, v10.0.0, ..., v10.48.9] but it conflicts with your root composer.json require (^11.0).
    - Root composer.json requires jeremykenedy/laravel-roles * -> satisfiable by jeremykenedy/laravel-roles[v1.0.0, ..., v1.7.0, v2.0.0, ..., v2.9.0, v3.0.0, ..., v3.8.0, v4.0.0, v5.0.0, v5.1.0, v6.0.0, v7.0.0, v8.0.0, v8.1.0, v9.0.0, v9.1.0, v9.1.1, v10.0.0].

Command I used:

composer require jeremykenedy/laravel-roles

Laravel Version : 11.5.0

PHP Version : 8.2.3

Thank you.

DEV7163 commented 5 months ago

I hate my client for choosing this shitty package having a million of better options out there.

ajitdas123 commented 4 months ago

@DEV7163 This is by far the best ACL package only if you know how to use.

@ks-dipeshc The New build is not released yet which is why it's not working

@jeremykenedy Can we have a new build for 11, please?

anjunatl commented 2 months ago

Just ran into this issue as well. I tried upgrading everything to test it out to make PRs for this & the laravel-users repo, but keep running into issues where the old & abandoned laravelcollective/html needs to be replaced by spatie/laravel-html, but that upgrade's not as straightforward as the docs suggest & all the blade templates need a lot of work.

If you're willing to pay for Laravel Shift, there's an automation to convert the syntax

anjunatl commented 2 months ago

https://github.com/jeremykenedy/laravel-roles/pull/205 - Looks like a shift upgrade has already been started

DTS-And-Eaglepoint-Funding commented 1 month ago

why dont we use https://packagist.org/packages/laravellux/html its a fork of laravelcollective/html thats still being mantaind and suports laraval 11 with little changes

jeremykenedy commented 1 week ago

Should be fixed in most recent build.

https://github.com/jeremykenedy/laravel-roles/pull/208