Deployment & Operations
APP_KEY and the endpoint prefix
The renderBlade and Linker POST routes share a site-specific prefix derived from APP_KEY (/{prefix}/render, /{prefix}/linker, …).
- Every server of the same site must use the same key.
- After changing the key: deploy the application and caches together, and reload open pages.
- Details in the repo's
docs/site-endpoints.md.
Linker settings (config/linker.php)
| Setting | Environment variable | Default | Notes |
|---|---|---|---|
store | LINKER_CACHE_STORE | default cache | Use a dedicated store so cache:clear doesn't wipe flows in progress; share Redis across servers |
stateful.idle_minutes | LINKER_STATEFUL_IDLE_MINUTES | 30 | Idle time before expiry |
stateful.max_lifetime_minutes | LINKER_STATEFUL_MAX_LIFETIME_MINUTES | 480 | Absolute cap |
stateful.lock_seconds | LINKER_STATEFUL_LOCK_SECONDS | 60 | Instance lock lease; must exceed the longest single call |
stateful.lock_wait_seconds | LINKER_STATEFUL_LOCK_WAIT_SECONDS | 3 | Waiting longer returns service |
stateless.idle_minutes | LINKER_STATELESS_IDLE_MINUTES | 30 | Sliding expiry of signed URLs |
stateless.max_lifetime_minutes | LINKER_STATELESS_MAX_LIFETIME_MINUTES | 480 | Absolute expiry inside the signature |
strict.referer | LINKER_STRICT_REFERER | true | Master switch for the Referer allow list |
strict.require_referer | LINKER_REQUIRE_REFERER | false | Whether to refuse requests without a Referer |
interaction.min_delay_seconds | LINKER_MIN_DELAY_SECONDS | 0.8 | Minimum interval between sends; stops double clicks |
Don't raise the TTL to "resume" forms
Server instances don't survive a reload (the uuid goes away with the DOM). To resume, save a DB draft row.
Health checks
bash
php artisan linker:list --healthbash
php artisan linker:list --health --allow-network-cachebash
php artisan linker:list --health --health-user=42- The first checks lifetimes, Stateless routes, and reads/writes/locks on the local cache store, using isolated keys and no flush.
- Network stores (Redis) are only checked with the explicit flag.
- The third also verifies Stateless token generation, without creating users or printing URLs.
CI
bash
php artisan linker:listChecks that PHP action specs and actions.js match one-to-one. A missing JS side only shows up as "the pipeline fails at that step"; catch it early.
bash
php artisan test tests/Feature/RegressionRegression tests cover render-blade security, the Linker contract and more.
Production
APP_DEBUG=false: no dump content, no error details.- When HTTPS terminates at a proxy, Laravel uses
X-Forwarded-Proto(trustProxiesinbootstrap/app.php). APP_RENDER_BLADE_FINGERPRINTcan disable fragment fingerprints (for troubleshooting).