DEV Community

Discussion on: How to Host a Laravel App with MySQL Database on Heroku

Collapse
 
yashamihsan profile image
yashamihsan

when I do git push Heroku master, after pushing it start installing platform packages then I got this error

@php artisan package:discover --ansi
remote:
remote: In app.php line 29:
remote:
remote: syntax error, unexpected ''env'' (T_CONSTANT_ENCAPSED_STRING), expecting ']
remote: '
remote:
remote:
remote: Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
remote: ! WARNING: A post-autoload-dump script terminated with an error
remote:
remote: ! ERROR: Dependency installation failed!
remote: !
remote: ! The 'composer install' process failed with an error. The cause
remote: ! may be the download or installation of packages, or a pre- or
remote: ! post-install hook (e.g. a 'post-install-cmd' item in 'scripts')
remote: ! in your 'composer.json'.

Collapse
 
bijayhash profile image
bijay-hash

did you find the solution i am having same issue please share your solution