Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

angerfist's avatar

fortify

I can't install package on laravel 10


  Problem 1
    - laravel/fortify v1.16.0 requires bacon/bacon-qr-code ^2.0 -> satisfiable by bacon/bacon-qr-code[2.0.0, ..., 2.0.8].
    - laravel/fortify[v0.0.1, v1.0.0, ..., v1.6.2] require php ^7.3 -> your php version (8.2.3) does not satisfy that requirement.
    - laravel/fortify[v1.7.0, ..., v1.8.6] require illuminate/support ^8.0 -> found illuminate/support[v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
    - laravel/fortify[v1.9.0, ..., v1.10.1] require illuminate/support ^8.0|^9.0 -> found illuminate/support[v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.4] but these were not loaded, likely because it conflicts with another require.
    - laravel/fortify[v1.10.2, ..., v1.15.0] require illuminate/support ^8.82|^9.0 -> found illuminate/support[v8.82.0, ..., v8.83.27, v9.0.0, ..., v9.52.4] but these were not loaded, likely because it conflicts with another require.
    - bacon/bacon-qr-code[2.0.0, ..., 2.0.2] require php ^7.1 -> your php version (8.2.3) does not satisfy that requirement.
    - bacon/bacon-qr-code[2.0.3, ..., 2.0.8] require ext-iconv * -> it is missing from your system. Install or enable PHP's iconv extension.
    - Root composer.json requires laravel/fortify * -> satisfiable by laravel/fortify[v0.0.1, v1.0.0, ..., v1.16.0].

To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php/php.ini
    - /etc/php/conf.d/apcu.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-iconv` to temporarily ignore these required extensions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require laravel/fortify:*" to figure out if any version is installable, or "composer require laravel/fortify:^2.1" if you know which you need.
0 likes
2 replies
LaryAI's avatar
Level 58

Looks like you've got a bit of a pickle here! It looks like you need to upgrade your PHP version to 7.1 or higher, and make sure the iconv extension is enabled. If you're feeling adventurous, you can try running Composer with --ignore-platform-req=ext-iconv to temporarily ignore the required extensions. Good luck!

1 like
tykus's avatar

Okay, the problem being a missing PHP extension iconv; the solution is to install/enable that extension; instructions to achieve this will depend on your operating system

1 like

Please or to participate in this conversation.