akaunting / laravel-firewall

Web Application Firewall (WAF) package for Laravel
https://akaunting.com
MIT License
942 stars 106 forks source link

Installation fails on Laravel 11.10 #83

Closed momostafa closed 5 months ago

momostafa commented 5 months ago

Hi,

I am getting below error when trying to install on: laravel 11.10

Thanks in advance for your help and support

composer require akaunting/laravel-firewall -W
./composer.json has been updated
Running composer update akaunting/laravel-firewall --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - akaunting/laravel-firewall[1.2.11, ..., 1.3.4, 2.2.0] require jenssegers/agent 2.6.* -> satisfiable by jenssegers/agent[v2.6.0, ..., v2.6.4].
    - akaunting/laravel-firewall[1.0.0, ..., 1.0.3] require illuminate/support >=5.4 <6.0 -> found illuminate/support[v5.4.0, ..., v5.8.36] but these were not loaded, likely because it conflicts with another require.
    - akaunting/laravel-firewall[1.0.4, ..., 1.2.10] require guzzlehttp/guzzle ^6.0 -> found guzzlehttp/guzzle[6.0.0, ..., 6.5.8] but these were not loaded, likely because it conflicts with another require.
    - akaunting/laravel-firewall 2.0.0 requires laravel/framework ^9.0 -> found laravel/framework[v9.0.0, ..., v9.52.16] but it conflicts with your root composer.json require (^11.9).
    - akaunting/laravel-firewall[2.1.0, ..., 2.1.7] require laravel/framework ^9.0|^10.0 -> found laravel/framework[v9.0.0, ..., v9.52.16, v10.0.0, ..., v10.48.12] but it conflicts with your root composer.json require (^11.9).
    - jenssegers/agent[v2.6.0, ..., v2.6.4] require mobiledetect/mobiledetectlib ^2.7.6 -> found mobiledetect/mobiledetectlib[2.7.6, ..., 2.8.45] but it conflicts with your root composer.json require (^4.8).
    - Root composer.json requires akaunting/laravel-firewall * -> satisfiable by akaunting/laravel-firewall[1.0.0, ..., 1.3.4, 2.0.0, ..., 2.2.0].

You can also try re-running composer require with an explicit version constraint, e.g. "composer require akaunting/laravel-firewall:*" to figure out if any version is installable, or "composer require akaunting/laravel-firewall:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
momostafa commented 5 months ago

I sorted out by forking and updating the dependencies Thanks for the package