Laravel heroku php issue

Job ID: 35332056

Budget: €8 – €30 EUR

I like to redeploy my website to Heroku but get this error:

ERROR: Failed to install system packages!
!
! Your platform requirements (for runtimes and extensions) could
! not be resolved to an installable set of dependencies, or a
! platform package repository was unreachable.
!
! This usually means that you (or packages you are using) depend
! on a combination of PHP versions and/or extensions that are
! currently not available on Heroku.
!
! The following is the full output from the installation attempt:
!
! > Loading repositories with available runtimes and extensions
! > Warning: the packages key '0' doesn't match the name defined in the package metadata 'ext-bcmath' in repository https://lang-php.s3.us-east-1.amazonaws.com/dist-heroku-22-stable
! > Updating dependencies
! > Your requirements could not be resolved to an installable set of packages.
! >
! > Problem 1
! > - composer.json/composer.lock requires php ^7.2.2 -> found php[8.1.6, ..., 8.1.12] but it does not match the constraint.
! > Problem 2
! > - Root composer.json requires dompdf/dompdf v0.8.6 -> satisfiable by dompdf/dompdf[v0.8.6].
! > - dompdf/dompdf v0.8.6 requires php ^7.1 -> found php[8.1.6, ..., 8.1.12] but it does not match the constraint.
! > Problem 3
! > - Root composer.json requires laravel/cashier v10.7.1 -> satisfiable by laravel/cashier[v10.7.1].
! > - laravel/cashier v10.7.1 requires php ^7.1.3 -> found php[8.1.6, ..., 8.1.12] but it does not match the constraint.
! > Problem 4
! > - Root composer.json requires laravel/socialite v4.4.1 -> satisfiable by laravel/socialite[v4.4.1].
! > - laravel/socialite v4.4.1 requires php ^7.1.3 -> found php[8.1.6, ..., 8.1.12] but it does not match the constraint.
! >
! > Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
!
! For reference, the following runtimes are currently available:
!
! PHP: 8.1.12, 8.1.11, 8.1.10, 8.1.9, 8.1.8, 8.1.7, 8.1.6
!
! Please verify that all requirements for runtime versions in
! 'composer.lock' are compatible with the list above, and ensure
! all required extensions are available for the desired runtimes.
!
! When choosing a PHP runtimes and extensions, please also ensure
! they are available on your app's stack (heroku-22), and select
! a different stack if needed after consulting the article below.
!
! For a list of supported runtimes & extensions on Heroku, please
! refer to: https://devcenter.heroku.com/articles/php-support
! Push rejected, failed to compile PHP app.
! Push failed

My website is hosted on GitHub, so you need a GitHub account to push any changes.

Thank you
Related categories: PHP HTML Laravel Heroku GitHub