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.

Requirements

Requirement Recommended
App type laravel
Runtime PHP 8.4 (or newer)
Database MySQL 8.4
Cache (Redis) Enabled (queues, cache, sessions; optional)
Web server Nginx

Configure it

  1. Open the host's Applications tab.
  2. Click Add app or database.
  3. Set App Type to laravel and choose the PHP runtime under Technologies.
  4. Enable MySQL, and optionally Redis, as services.
  5. 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.