page:guides:laravel:schema changes

Apply Database Schema Changes for Laravel

Summary

Schema changes for a Laravel app on Ample. Verified on Laravel: a --release-command migration ran before activation and its marker was readable by the live app (migrated=release-ok). Build and start: composer install --no-dev from composer.lock, then FrankenPHP serving public/ (php-server with the index.php fallback) reading PORT on the php-8.5 template.

Representative Queries

Resource Requirements

Infrastructure Requirements

Prerequisites

Workflow Steps

  1. Build and start
    composer install --no-dev from composer.lock, then FrankenPHP serving public/ (php-server with the index.php fallback) reading PORT on the php-8.5 template; the server must bind 0.0.0.0 on PORT.
  2. Run migrations as the release command
    Ample runs the command before activation and fails the release if it exits non-zero; keep migrations idempotent.
    ample deploy . --name --public --release-command "python3 migrate.py"
  3. Verify
    Fetch the live URL and /p/migrated on the example; on failure read the build and runtime logs.
    ample logs --kind build

Examples

Success Checks

Limitations

Cost Estimate

Evidence Summary

Last Verified At

2026-09-20T20:36:21Z

Unknowns