Deploy Laravel on TurboStack
Deploy a Laravel app on TurboStack - PHP, MySQL and Redis, with your code via Git - and an annotated example host YAML.
Laravel is a PHP framework for building web applications and APIs. On TurboStack the platform provisions the PHP runtime, MySQL database, and Redis from your host configuration, and you deploy by publishing.
Note
This is a configuration-only application: you bring your own application code. Deploy it with Git deployment.
Requirements
Configure it
- Open the host's Applications tab.
- Click Add app or database.
- Set App Type to
laraveland choose the PHP runtime under Technologies. - Enable MySQL, and optionally Redis, as services.
- Publish, then deploy your code via Git deployment.
Example configuration
webserver: nginx
mysql_version: "8.4" # application database
redis_enabled: true # queues, cache, sessions (optional but common)
system_users:
- username: prod
vhosts:
- server_name: app.example.com
app_type: laravel
php_version: "8.4"
cert_type: letsencrypt
Why these choices
- MySQL 8.4 is a common relational backend for Laravel's Eloquent object-relational mapping (ORM) layer and migrations.
- Redis is optional but widely used in Laravel for queues, cache, and session storage; enable it when your app uses any of those drivers.
- Nginx serves the application's public directory and proxies to PHP-FPM.
- Let's Encrypt provides automatic, renewing HTTPS.
- You bring your own code, so the application is deployed by you rather than scaffolded by the platform.
Related
-
Best practices - performance & stability.
-
Troubleshooting - logs & common fixes.