Skip to content

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) ​

SettingEnvironment variableDefaultNotes
storeLINKER_CACHE_STOREdefault cacheUse a dedicated store so cache:clear doesn't wipe flows in progress; share Redis across servers
stateful.idle_minutesLINKER_STATEFUL_IDLE_MINUTES30Idle time before expiry
stateful.max_lifetime_minutesLINKER_STATEFUL_MAX_LIFETIME_MINUTES480Absolute cap
stateful.lock_secondsLINKER_STATEFUL_LOCK_SECONDS60Instance lock lease; must exceed the longest single call
stateful.lock_wait_secondsLINKER_STATEFUL_LOCK_WAIT_SECONDS3Waiting longer returns service
stateless.idle_minutesLINKER_STATELESS_IDLE_MINUTES30Sliding expiry of signed URLs
stateless.max_lifetime_minutesLINKER_STATELESS_MAX_LIFETIME_MINUTES480Absolute expiry inside the signature
strict.refererLINKER_STRICT_REFERERtrueMaster switch for the Referer allow list
strict.require_refererLINKER_REQUIRE_REFERERfalseWhether to refuse requests without a Referer
interaction.min_delay_secondsLINKER_MIN_DELAY_SECONDS0.8Minimum 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 --health
bash
php artisan linker:list --health --allow-network-cache
bash
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:list

Checks 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/Regression

Regression 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 (trustProxies in bootstrap/app.php).
  • APP_RENDER_BLADE_FINGERPRINT can disable fragment fingerprints (for troubleshooting).