You can find the step-by-step deployment guide here.
Hostman uses the following environment when building a Laravel application:
The default start command is:
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:
public function boot()
{
URL::forceScheme('https');
}