How to Deploy Laravel on Heroku with Database

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

I am Laravel and PHP Developer. I have also Good Knowledge of JavaScript, jQuery, Bootstrap and REST API.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store