I am trying to deploy my laravel app to Heroku.
Deployment is failing while trying to run composer install.
It fails with the following error
Package illuminate/html is abandoned, you should avoid using it. Use laravelcollective/html instead.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
In Facade.php line 236:
A facade root has not been set.
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
! WARNING: A post-autoload-dump script terminated with an error
! ERROR: Dependency installation failed!
!
! The 'composer install' process failed with an error. The cause
! may be the download or installation of packages, or a pre- or
! post-install hook (e.g. a 'post-install-cmd' item in 'scripts')
! in your 'composer.json'.
Composer install works fine in my local system.
Seems to be then some problem with the environment in my local and heroku.
I have an APP_KEY defined in my Heroku env variable.
Best Regards,
Saurav