Laravel

Deploy Laravel applications with Composer, PHP-FPM-style containers, and Caddy at the edge (runtime_kind: laravel_app).

Publish directory

Laravel must use public as the web root—the platform validates this in the create wizard. Assets and index.php must be reachable under /public.

Composer & optimization

When composer.json is present, dependency installation runs as part of the build pipeline. Typical production flags mirror composer install --no-dev --prefer-dist --optimize-autoloader.

PHP version

Choose automatic PHP resolution or pin a specific version in project settings so builds stay aligned with your local Docker or CI matrix.

Wizard options

  • APP_KEY generation when appropriate for fresh apps
  • Optional migrations and seeders during deploy (use carefully in production)
  • Optional queue worker and scheduler sidecar patterns where enabled for your organization
Running destructive migrations automatically can drop data. Prefer staging environments and backups — see Managed databases.

Databases

Attach managed MySQL or PostgreSQL during creation, or provide connection strings via environment variables for external databases.

See also