Skip to main content

Crate stackless_laravel_cloud

Crate stackless_laravel_cloud 

Source
Expand description

stackless-laravel-cloud (ARCHITECTURE.md §4): the Laravel Cloud substrate.

Mirrors the Netlify cloud flow at a smaller v0 scope: Stripe Projects provisions laravel_cloud/application and tracks spend; observe/destroy key off the Stripe resource registration. A real Laravel Cloud deploy API client is Phase 2 — v0 records a placeholder origin and resumes via Stripe.

§Credential model

Provisioning laravel_cloud/application returns a Stripe-managed app_id. observe/destroy key off the Stripe resource registration, not a Laravel Cloud API.

§v0 scope and cloud invariants

  • Placeholder origin. Origins are https://{stack}-{instance}-{service}.laravel.cloud until a deploy client fills in the real URL.
  • Cloud resource names are {stack}-{instance}-{service} — DNS-safe.
  • Setup is skipped on cloud; prepare runs on the operator’s machine.
  • Source override is unsupported — Laravel Cloud deploys committed refs.

Modules§

codes
Stable error codes for the Laravel Cloud substrate (ARCHITECTURE.md §2/§8).
config
Parsing the laravel-cloud-specific blocks of the definition (§1 schema).
error
Laravel Cloud substrate errors (codes in this crate’s laravel_cloud.* registry).

Structs§

LaravelCloudSubstrate
The Laravel Cloud substrate. Generic over the command runner so tests inject canned Stripe envelopes; production uses the real stripe binary.

Constants§

SPEND_CAP_USD
The hard per-provider spend cap set on first paid confirmation (§4).
SUBSTRATE_NAME