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

sshateri's avatar

Laravel application to production server deployment

Hey everyone, I was looking for a complete guide to how to deploy the Laravel application (version 8 or at least 7) to the server but I could not find any. is there any complete guide for such operation including the Deployment from local machine to the server or from Git repository to the server, Nginx configuration for Laravel, optimization such as caching and autoloader, SSL configuration for Laravel, Laravel server security, Laravel corn jobs (scheduling), linking a domain to your Laravel application and other stuff that needs to be done on a Laravel production server?

0 likes
4 replies
jlrdw's avatar

Digital Ocean has plenty of tutorials. Have you considered Forge.

Punching in

deploy laravel to digitalocean

Gave a lot of results.

Changed to aws also plenty of results. What host are you going to use.

extjac's avatar

what Cloud provider are you using?

sshateri's avatar

It's a private VPS and Cloud provider. It's not one of the public ones like digitalocean, cloudways, or forge. they provide a bare VPS only with OS of choice installed. They have a panel for DNS management, linking domains, back up and such stuff but that's all. there should not be any difference between this provider or others like digitalocean since they are all linux VPS.

There are guides to how to install LEMP and deploy the Laravel application but I could not find any including the Laravel optimization after the deployment.

Please or to participate in this conversation.