DEV Community


How to Deploy Laravel on Heroku with Database

I am Laravel Developer. I have good knowledge of JavaScript, JQuery, Bootstrap and REST API.
Originally published at ・1 min read

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
Enter fullscreen mode Exit fullscreen mode

Read More : How to Deploy Laravel on Heroku with Database

Read Also : How To Get Current User Location In Laravel

Read Also : Laravel Datatables Example

Thanks for the reading...!!
Don't forgot to like,share and comment.

Discussion (0)