---
title: "How to Deploy a Laravel App | Hostman Docs"
description: "Deploy Laravel applications on Hostman’s high-performance cloud platform with ease. Achieve fast, secure, and scalable deployment for projects."
---

> For the complete documentation index for AI agents, see [llms.txt](https://hostman.com/llms.txt).

You can find the step-by-step deployment guide [here](https://hostman.com/docs/app-platform/backend-apps/).

Hostman uses the following environment when building a Laravel application:

-   PHP: 8.2, 8.3, 8.4, or 8.5, depending on the version you chose when creating the app
-   Composer

The default start command is:

```shell
php artisan serve --host=0.0.0.0 --port=8000
```

After the deployment, Hostman will automatically issue an SSL certificate and configure the app to work over HTTPS. However, Laravel may continue to generate HTTP links by default, which can cause errors when making AJAX requests or submitting forms.

To force HTTPS, add the following code to the `app/Providers/AppServiceProvider.php` file:

```php
public function boot()
{
    URL::forceScheme('https');
}
```
