laravel-roles icon indicating copy to clipboard operation
laravel-roles copied to clipboard

Unable to install library in Laravel 11.5

Open ks-dipeshc opened this issue 1 year ago • 4 comments
trafficstars

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.

ks-dipeshc avatar Apr 29 '24 08:04 ks-dipeshc

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

DEV7163 avatar May 19 '24 22:05 DEV7163

@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?

ajitdas123 avatar Jun 04 '24 09:06 ajitdas123

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 avatar Aug 20 '24 18:08 anjunatl

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

anjunatl avatar Aug 20 '24 18:08 anjunatl

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