page:recipes:community forum:laravel:tenant workspaces
Host community forum with Laravel: tenant-scoped workspaces
Summary
Deploy a community forum built with Laravel on Ample using the multi-tenant relational data pattern. Compute runs the app in an isolated microVM behind a public HTTPS URL, a managed PostgreSQL 16 database is auto-provisioned and injected as DATABASE_URL. Verified on Laravel: a tenant column on every row and query, with a cross-tenant read returning nothing (tenant_isolation=ok). Not separately tested: your tenant model, membership and per-tenant authorization; treat the community forum-specific behavior as your application code.
Representative Queries
- Host community forum with Laravel: tenant-scoped workspaces
- Where can I host Community forum built with Laravel?
- I need an explicit tenant model and application-enforced tenant isolation tests.
Resource Requirements
- primitive:compute
- primitive:postgres
Infrastructure Requirements
- Compute
- Status: verified
- Summary: Apps run in isolated x86_64 Firecracker microVMs that auto-pause when idle and wake on request; sizes are the priced VM sizes.
- Postgres
- Status: verified
- Summary: Managed PostgreSQL 16 runs in its own microVM and is auto-provisioned when an app needs a database and no DATABASE_URL is supplied.
Framework
Laravel
Workload
Community forum
Release Status
Published
Support Status
Verified
Execution Status
Ready
Prerequisites
- A Laravel project that builds and starts with the documented commands (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)
- A PostgreSQL driver reading DATABASE_URL at runtime (auto-provisioned when omitted, or supplied with --env)
- An Ample account token with servers:write, databases:read
Tested Configuration
- Template: php-8.5
- Runtime: php
- Size: s-1vcpu-1gb
- Install: composer install --no-dev --prefer-dist --no-interaction --no-progress --optimize-autoloader
- Start: frankenphp php-server --listen :$PORT --root public
Input Schema
- env: Encrypted environment variables (bucket credentials, secrets)
- name: App name
- path: Project directory or ample.toml service
- release_command: Migration command run before activation
Workflow Steps
- Build and start
- Command: 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.
- Implement the pattern on PostgreSQL
- Command: Copy the approach into your schema; keep migrations idempotent and run them with --release-command.
- Deploy
- Command: ample deploy . --name --public
- Verify
- Command: ample logs --kind build
Examples
- Title: Laravel pattern fixture
- Description: Multi-pattern Laravel app whose multi-tenant relational data module was checked live; the module is under tests/deploy-canaries/_pattern-modules.
- Source Ref: tests/deploy-canaries/laravel-patterns
Success Checks
- App responds on its public URL
- Path: /
- Multi-tenant-relational-data self-test
- Path: /p/multi-tenant-relational-data
Limitations
- Verified on the php-8.5 template at s-1vcpu-1gb with the example fixture; other sizes, templates and Laravel major versions are not verified.
Cost Estimate
- Currency: USD
- Monthly Amount: 10.0
- Basis: size prices from pricing.toml (loaded by the API)
- Components:
- App server: s-1vcpu-1gb, quantity: 1.0, monthlyAmount: 5.0
- Managed PostgreSQL database: s-1vcpu-1gb, quantity: 1.0, monthlyAmount: 5.0
Evidence Summary
- Kind: canary_run
- Summary: Laravel pattern fixture deployed on Ample; checks passed for multi-tenant-relational-data and configuration-secrets.
- Observed At: 2026-09-20T20:36:21Z
- Expires At: 2027-03-19T20:36:21Z
Last Verified At
2026-09-20T20:36:21Z
MCP Binding
- Registry Ref: mcp:ample_deploy
- Binding State: current
Unknowns
- Region availability is unknown until a verified region fact is recorded.
- Compliance attestations are unknown; none are claimed.
Formats
Next Actions
- Browse the catalog index
- Method: GET
- Search published recipes
- Method: POST
- Prepare a side-effect-free deployment plan
- Method: POST
- Read the existing agent authentication setup
- Method: GET
- Browse Community forum
- Method: GET
- Browse Laravel
- Method: GET
- Browse Multi-tenant relational data
- Method: GET
- Browse Deploy web app
- Method: GET