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

MahmoudAdelAli's avatar

IdeHelperServiceProvider not found heroku deploy

hi , i want to push my project to heroku instead the old and i push with --force i faced

    Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
remote:        Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead.
remote:        Generating optimized autoload files
remote:        > Illuminate\Foundation\ComposerScripts::postAutoloadDump
remote:        > @php artisan package:discover --ansi
remote:        
remote:        In ProviderRepository.php line 208:
remote:                                                                                
remote:          Class "Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider" not found  

i don't have it in my composer.lock

{
  "name": "laravel/laravel",
  "type": "project",
  "description": "The Laravel Framework.",
  "keywords": [
    "framework",
    "laravel"
  ],
  "license": "MIT",
  "require": {
    "php": "^8.0",
    "arcanedev/log-viewer": "8.x",
    "doctrine/dbal": "^3.1",
    "fideloper/proxy": "^4.4",
    "fruitcake/laravel-cors": "^2.0",
    "guzzlehttp/guzzle": "^7.0.1",
    "haruncpi/laravel-id-generator": "^1.0",
    "laravel/framework": "^8.12",
    "laravel/tinker": "^2.5",
    "pavel-mironchik/laravel-backup-panel": "^2.2",
    "petercoles/multilingual-language-list": "^1.16",
    "pragmarx/countries": "^0.8.2",
    "spatie/laravel-permission": "^5.4",
    "spatie/laravel-settings": "^2.4",
    "yajra/laravel-datatables": "^1.5"
  },
  "require-dev": {
    "facade/ignition": "^2.5",
    "fakerphp/faker": "^1.9.1",
    "laravel/dusk": "^6.15",
    "laravel/sail": "^1.0.1",
    "mockery/mockery": "^1.4.2",
    "nunomaduro/collision": "^5.0",
    "phpunit/phpunit": "^9.3.3"
  },
  "autoload": {
    "psr-4": {
      "App\": "app/",
      "Database\Factories\": "database/factories/",
      "Database\Seeders\": "database/seeders/"
    },
    "files": [
      "app/Helpers/Helpers.php"
    ]
  },
  "autoload-dev": {
    "psr-4": {
      "Tests\": "tests/"
    }
  },
  "scripts": {
    "post-autoload-dump": [
      "Illuminate\Foundation\ComposerScripts::postAutoloadDump",
      "@php artisan package:discover --ansi"
    ],
    "post-root-package-install": [
      "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
    ],
    "post-create-project-cmd": [
      "@php artisan key:generate --ansi"
    ]
  },
  "extra": {
    "laravel": {
      "dont-discover": []
    }
  },
  "config": {
    "optimize-autoloader": true,
    "preferred-install": "dist",
    "sort-packages": true
  },
  "minimum-stability": "dev",
  "prefer-stable": true
}


Or Even My composer.lock and i don't have it any where in the project and i still get this error so how i delete all package and his dependencies ?

0 likes
2 replies
MahmoudAdelAli's avatar

heroku say

remote:  !     Push rejected, failed to compile PHP app.
remote: 
remote:  !     Push failed
remote:  !
remote:  ! ## Warning - The same version of this code has already been built: 32cbe39026ffde2d52736f35b9d513ab8034aa98
remote:  !
remote:  ! We have detected that you have triggered a build from source code with version 32cbe39026ffde2d52736f35b9d513ab8034aa98
remote:  ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
remote:  !
remote:  ! If you are developing on a branch and deploying via git you must run:
remote:  !
remote:  !     git push heroku <branchname>:main
remote:  !
remote:  ! This article goes into details on the behavior:
remote:  !   https://devcenter.heroku.com/articles/duplicate-build-version
remote: 
remote: Verifying deploy...
remote: 
remote: !       Push rejected to bla blabla

idk if there's relation between

martinbean's avatar

@mahmoudadelali You clearly do have it in your lock file, otherwise Heroku wouldn’t know about it and try and install it.

If you’ve just removed the idi-helper package from your composer.json file then, you also need to run composer update after so it generates an updated lock file. Then you can try pushing to Heroku again.

Please or to participate in this conversation.