Skip to content

Compatibility issue between simplesoftwareio/simple-qrcode and Laravel Fortify on Laravel 12 (bacon/bacon-qr-code version conflict) #331

Open

Description

@ravi-374

Hi 👋

I’m running into a dependency conflict when trying to use simplesoftwareio/simple-qrcode alongside Laravel Fortify on Laravel 12.

Laravel Fortify (v1.34+) depends on:
bacon/bacon-qr-code ^3.0

However, the latest stable version of simplesoftwareio/simple-qrcode requires:
bacon/bacon-qr-code ^2.0

This creates an unresolvable conflict when installing both packages together.

Conflict Details:

  • laravel/framework: ^12.0
  • laravel/fortify: ^1.34

requires bacon/bacon-qr-code ^3.0

  • simplesoftwareio/simple-qrcode: ^4.2

requires bacon/bacon-qr-code ^2.0

Composer error (simplified):

You can only install one version of a package, so only one of these can be installed:
- bacon/bacon-qr-code ^2.0
- bacon/bacon-qr-code ^3.0

Because Laravel 12 + Fortify requires bacon/bacon-qr-code ^3, it’s currently impossible to use simple-qrcode in this setup.

Expected Behavior:

It should be possible to use simplesoftwareio/simple-qrcode with:

  • Laravel 12
  • Laravel Fortify
  • bacon/bacon-qr-code ^3.0

Suggested Solutions:

One of the following would resolve the issue:

  1. Release a new version of simplesoftwareio/simple-qrcode that supports bacon/bacon-qr-code ^3.0, or
  2. Provide guidance or an alternative approach for using simple-qrcode alongside Laravel Fortify on Laravel 12.

Thanks for your work on this package 🙏
Please let me know if I can help test or provide additional details.

Activity

  1. khaled-sadek commented on Mar 2, 2026

    @khaled-sadek

    The package is not up to date, I don't know why I used this package for years, but needed faster fixes for my SaaS. I decided to maintain a compatible fork here that keeps the same API but adds Laravel 11 &12 support beside support till php8.5 and clean all messy bugs raised here

    Edit 19th Mar 2026:
    It supports Laravel 13 too. And has a blade component to render the qr code.

  2. tuncaybahadir commented on Mar 9, 2026

    @tuncaybahadir

    @ravi-374 You can also try the following package for Laravel versions 10, 11, 12, and PHP versions 8.2, 8.3, 8.4, 8.5. Competition is good :)

    https://packagist.org/packages/tuncaybahadir/quar

  3. ultrono commented on Mar 19, 2026

    @ultrono

    I made a fork: https://github.com/f9webltd/simple-qrcode

    Supports version 3 of bacon/bacon-qr-code and Laravel 13.

  4. Jamalofski commented on Nov 13, 2026

    @Jamalofski

    On Laravel 12 with Fortify, jamalofski/simple-qrcode 4.3.0 installs without conflict. It's a maintained fork of this package that requires bacon/bacon-qr-code ^3. Because it keeps the SimpleSoftwareIO\QrCode namespace and declares replace for simplesoftwareio/simple-qrcode, your code doesn't change, and packages that depend on the original name keep working. Switching takes two commands:

    composer remove simplesoftwareio/simple-qrcode --no-update
    composer require jamalofski/simple-qrcode

    It's tested on PHP 8.2 to 8.5 and Laravel 11 to 13. More in #332.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions