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

yassineqoraiche's avatar

Deploy Laravel application to heroku

Hello everyone,

I've successfully deployed a laravel application to heroku, but the problem is i can't publish a package inside it, for example i want to publis telescope package or Horizon so i can access it in production like so: heroku_app.com/telescope.

0 likes
2 replies
Martijn_van_der_Bruggen's avatar

In the Heroku dashboard under the 'More' button you will find 'console'..type 'bash' in there and a console will open. Then do 'php artisan telescope:install' and later on 'php artisan migrate'. If you do that now you will get an error saying something about utf. You have to add environment variables under 'settings' in heroku app specifying you default database connection. DB_CONNECTION=pgsql and APP_ENV=local to get telescope to work. This is not a pretty way. Better is to do this https://laravel.com/docs/8.x/telescope#dashboard-authorization

https://laracasts.com/discuss/channels/laravel/migration-error-on-heroku-productionerror-sqlstate22023-invalid-parameter-value-7-error-invalid-value-for-parameter-client-encoding-utf8mb4

Please or to participate in this conversation.