How to Deploy Laravel on Heroku with Database

Websolutionstuff
2 min readJun 7, 2021

--

In this example we will see How to Deploy Laravel on Heroku with Database, Heroku is a cloud platform as a service (PaaS) supporting several programming languages.

Developers use Heroku to deploy, manage, and scale modern apps. heroku platform is elegant, flexible, and easy to use, offering developers the simplest path to getting their apps to market.

Heroku offers a free plan to help you learn and get started on the platform. Heroku Buttons and Buildpacks are free, and many Heroku Add-ons also offer a free plan.

Here i will show you how to host laravel project on heroku or deploy laravel to heroku with database here we will use postgresql heroku database.

Step 1 :  Install/download Heroku CLI
Step 2 : Install Laravel Application
Step 3 : Create a proc file
Step 4 : Initialize git repo
Step 5 : Login into the Heroku and create App
Step 6 : Push Laravel changes to Heroku
Step 7 : Configure the postgresql Database on Heroku
Step 8 : Add the project files and run the migration

--

--

Websolutionstuff
Websolutionstuff

Written by Websolutionstuff

I am Laravel and PHP Developer. I have also Good Knowledge of JavaScript, jQuery, Bootstrap and REST API. Visit Website: http://websolutionstuff.com/

No responses yet