### Database Instance Pricing Example Source: https://cloud.laravel.com/docs/pricing Example pricing details for a 'db-flex.m-1vcpu-2gb' instance in 'us-east-1', showing monthly and per-second rates. ```json "db-flex.m-1vcpu-2gb": { "pricePerMonth": 25.6, "pricePerSecond": 1.058201e-5, "secondsToCap": 2419200 } ``` -------------------------------- ### MySQL Pro Instance Pricing Example Source: https://cloud.laravel.com/docs/pricing Example pricing details for a 'mysql-pro-32gb' instance in 'ca-central-1', showing monthly and per-second rates. ```json "mysql-pro-32gb": { "pricePerMonth": 448, "pricePerSecond": 0.00018518519, "secondsToCap": 2419200 } ``` -------------------------------- ### Start Environment Source: https://cloud.laravel.com/docs/api/environments/start-environment Initiates the start of an environment and triggers a deployment. You can optionally specify to redeploy with the same commit as the latest deployment. ```APIDOC ## POST /environments/{environment}/start ### Description Start an environment and trigger a deployment. ### Method POST ### Endpoint /environments/{environment}/start ### Parameters #### Path Parameters - **environment** (string) - Required - The environment identifier #### Request Body - **redeploy** (boolean | null) - Optional - Pass true to redeploy the environment with the same commit as the latest deployment. Otherwise, the latest commit will be used. ### Response #### Success Response (200) - **data** (DeploymentResource) - The deployment resource. - **included** (array) - An array that may contain EnvironmentResource or UserResource objects. #### Error Responses - **404** - ModelNotFoundException - **422** - ValidationException ``` -------------------------------- ### MySQL Pro Instance Pricing Example Source: https://cloud.laravel.com/docs/pricing Example pricing details for a 'mysql-pro-16gb' instance in 'ca-central-1', showing monthly and per-second rates. ```json "mysql-pro-16gb": { "pricePerMonth": 224, "pricePerSecond": 9.259259e-5, "secondsToCap": 2419200 } ``` -------------------------------- ### Database Pro Instance Pricing Example Source: https://cloud.laravel.com/docs/pricing Example pricing details for a 'db-pro.m-4vcpu-16gb' instance in 'ca-central-1', showing monthly and per-second rates. ```json "db-pro.m-4vcpu-16gb": { "pricePerMonth": 224, "pricePerSecond": 9.259259e-5, "secondsToCap": 2419200 } ``` -------------------------------- ### Database Pro Instance Pricing Example Source: https://cloud.laravel.com/docs/pricing Example pricing details for a 'db-pro.m-1vcpu-4gb' instance in 'ca-central-1', showing monthly and per-second rates. ```json "db-pro.m-1vcpu-4gb": { "pricePerMonth": 56, "pricePerSecond": 2.314815e-5, "secondsToCap": 2419200 } ``` -------------------------------- ### Database Pro Instance Pricing Example Source: https://cloud.laravel.com/docs/pricing Example pricing details for a 'db-pro.m-8vcpu-32gb' instance in 'ca-central-1', showing monthly and per-second rates. ```json "db-pro.m-8vcpu-32gb": { "pricePerMonth": 448, "pricePerSecond": 0.00018518519, "secondsToCap": 2419200 } ``` -------------------------------- ### Database Flex Instance Pricing Example Source: https://cloud.laravel.com/docs/pricing Example pricing details for a 'db-flex.m-1vcpu-512mb' instance in 'ca-central-1', showing monthly and per-second rates. ```json "db-flex.m-1vcpu-512mb": { "pricePerMonth": 6.4, "pricePerSecond": 2.6455e-6, "secondsToCap": 2419200 } ``` -------------------------------- ### Database Pro Instance Pricing Example Source: https://cloud.laravel.com/docs/pricing Example pricing details for a 'db-pro.m-2vcpu-8gb' instance in 'ca-central-1', showing monthly and per-second rates. ```json "db-pro.m-2vcpu-8gb": { "pricePerMonth": 112, "pricePerSecond": 4.62963e-5, "secondsToCap": 2419200 } ``` -------------------------------- ### Database Flex Instance Pricing Example Source: https://cloud.laravel.com/docs/pricing Example pricing details for a 'db-flex.m-1vcpu-4gb' instance in 'ca-central-1', showing monthly and per-second rates. ```json "db-flex.m-1vcpu-4gb": { "pricePerMonth": 51.2, "pricePerSecond": 2.116402e-5, "secondsToCap": 2419200 } ``` -------------------------------- ### Database Flex Instance Pricing Example Source: https://cloud.laravel.com/docs/pricing Example pricing details for a 'db-flex.m-1vcpu-1gb' instance in 'ca-central-1', showing monthly and per-second rates. ```json "db-flex.m-1vcpu-1gb": { "pricePerMonth": 12.8, "pricePerSecond": 5.29101e-6, "secondsToCap": 2419200 } ``` -------------------------------- ### MySQL Flex Instance Pricing Example Source: https://cloud.laravel.com/docs/pricing Example pricing details for a 'mysql-flex-512mb' instance in 'ca-central-1', showing monthly and per-second rates. ```json "mysql-flex-512mb": { "pricePerMonth": 7.7, "pricePerSecond": 3.18287e-6, "secondsToCap": 2419200 } ``` -------------------------------- ### MySQL Flex Instance Pricing Example Source: https://cloud.laravel.com/docs/pricing Example pricing details for a 'mysql-flex-1gb' instance in 'ca-central-1', showing monthly and per-second rates. ```json "mysql-flex-1gb": { "pricePerMonth": 15.4, "pricePerSecond": 6.36574e-6, "secondsToCap": 2419200 } ``` -------------------------------- ### MySQL Pro Instance Pricing Example Source: https://cloud.laravel.com/docs/pricing Example pricing details for a 'mysql-pro-8gb' instance in 'ca-central-1', showing monthly and per-second rates. ```json "mysql-pro-8gb": { "pricePerMonth": 112, "pricePerSecond": 4.62963e-5, "secondsToCap": 2419200 } ``` -------------------------------- ### MySQL Pro Instance Pricing Example Source: https://cloud.laravel.com/docs/pricing Example pricing details for a 'mysql-pro-4gb' instance in 'ca-central-1', showing monthly and per-second rates. ```json "mysql-pro-4gb": { "pricePerMonth": 56, "pricePerSecond": 2.314815e-5, "secondsToCap": 2419200 } ``` -------------------------------- ### MySQL Flex Instance Pricing Example Source: https://cloud.laravel.com/docs/pricing Example pricing details for a 'mysql-flex-2gb' instance in 'ca-central-1', showing monthly and per-second rates. ```json "mysql-flex-2gb": { "pricePerMonth": 30.8, "pricePerSecond": 1.273148e-5, "secondsToCap": 2419200 } ``` -------------------------------- ### Quick Start Application Shipping Source: https://cloud.laravel.com/docs/api/cli Use the `ship` command for the fastest way to get an application running on Laravel Cloud. This guided flow handles application creation, environment configuration, and deployment. ```bash cloud ship ``` -------------------------------- ### List Available Instance Sizes Source: https://cloud.laravel.com/docs/api/cli Lists the available instance sizes that can be provisioned. ```bash cloud instance:sizes ``` -------------------------------- ### Get environment Source: https://cloud.laravel.com/docs/llms.txt Get a specific environment. ```APIDOC ## GET /environments/:environmentId ### Description Get a specific environment. ### Method GET ### Endpoint /environments/:environmentId ### Response #### Success Response (200 OK) - **id** (string) - The unique identifier of the environment. - **name** (string) - The name of the environment. - **status** (string) - The current status of the environment (e.g., 'running', 'stopped'). - **created_at** (string) - The timestamp when the environment was created. - **updated_at** (string) - The timestamp when the environment was last updated. ``` -------------------------------- ### Get instance Source: https://cloud.laravel.com/docs/llms.txt Get the details of a specific instance. ```APIDOC ## GET /instances/:instanceId ### Description Get the details of a specific instance. ### Method GET ### Endpoint /instances/:instanceId ### Response #### Success Response (200 OK) - **id** (string) - The unique identifier of the instance. - **environment_id** (string) - The ID of the environment this instance belongs to. - **size** (string) - The size of the instance. - **region** (string) - The region of the instance. - **status** (string) - The status of the instance. - **created_at** (string) - The timestamp when the instance was created. - **updated_at** (string) - The timestamp when the instance was last updated. ``` -------------------------------- ### Create Instance Source: https://cloud.laravel.com/docs/api/cli Creates a new instance for an environment. ```bash cloud instance:create ``` -------------------------------- ### Get environment metrics Source: https://cloud.laravel.com/docs/llms.txt Get metrics for a specific environment. ```APIDOC ## GET /environments/:environmentId/metrics ### Description Get metrics for a specific environment. ### Method GET ### Endpoint /environments/:environmentId/metrics ### Response #### Success Response (200 OK) - **cpu_usage** (object) - CPU usage metrics. - **memory_usage** (object) - Memory usage metrics. - **disk_usage** (object) - Disk usage metrics. - **network_traffic** (object) - Network traffic metrics. ``` -------------------------------- ### Starter Plan Details Source: https://cloud.laravel.com/docs/pricing Defines the Starter plan with its code, name, description, pricing, and feature availability. ```json { "code": "cloud_starter", "name": "Starter", "description": "$5/mo + usage", "basePrice": 5, "usageCredit": 5, "billingCycle": "monthly", "trialDays": 30, "features": { "api": true, "applications": null, "environments": null, "databases": null, "databaseSnapshotsMaxRetentionDays": 30, "logsMaxRetentionDays": 1, "caches": null, "objectStorage": null, "websocketServers": null, "builds": null, "backgroundProcesses": true, "taskScheduler": true, "hibernation": true, "workerClusters": false, "previewEnvironments": false, "autoscaling": false, "sslTls": true, "laravelCloudDomains": true, "customDomains": true, "dedicatedZones": false, "ddosMitigation": "basic", "waf": false, "edgeSmartRouting": false, "twoFactorAuth": true, "httpBasicAuth": false, "googleSso": true, "githubSso": true, "teams": false, "rbac": false, "predefinedRoles": false, "advancedRbac": false, "saml": false, "scimProvisioning": false, "scheduledAutoscaling": false, "privateConnections": false, "spendLimits": true }, "limits": { "compute": { "maxReplica": 1, ``` -------------------------------- ### Install and Use PNPM with Laravel Cloud Source: https://cloud.laravel.com/docs/knowledge-base/using-yarn-bun-pnpm Override default build commands to use PNPM. This involves globally installing PNPM, installing project dependencies with PNPM, and then running the build command using PNPM. ```bash npm install -g pnpm pnpm install pnpm run build ``` -------------------------------- ### Initiate Deployment Source: https://cloud.laravel.com/docs/llms.txt Initiates a deployment for a given environment. ```APIDOC ## POST /deployments ### Description Initiate a deployment for the given environment. ### Endpoint /deployments ``` -------------------------------- ### Install and Use Yarn with Laravel Cloud Source: https://cloud.laravel.com/docs/knowledge-base/using-yarn-bun-pnpm Override default build commands to use Yarn. This involves globally installing Yarn, installing project dependencies with Yarn, and then running the build command using Yarn. ```bash npm install -g yarn yarn install yarn run build ``` -------------------------------- ### Install and Use Bun with Laravel Cloud Source: https://cloud.laravel.com/docs/knowledge-base/using-yarn-bun-pnpm Override default build commands to use Bun. This involves globally installing Bun, installing project dependencies with Bun, and then running the build command using Bun. ```bash npm install -g bun bun install bun run build ``` -------------------------------- ### Get Database Source: https://cloud.laravel.com/docs/llms.txt Retrieves details for a specific database. Note: For new projects, use GET /databases/clusters/{database} instead. ```APIDOC ## GET /databases/{database} ### Description Get a specific database. ### Endpoint /databases/{database} ### Notes Use GET /databases/clusters/{database} instead for new projects. ``` -------------------------------- ### Overwrite Existing Agent Skills Source: https://cloud.laravel.com/docs/api/cli Forces the installation of AI agent skills, overwriting any existing skills that have already been installed. ```bash cloud skills:install --force ``` -------------------------------- ### Deploy and Open Application in Browser Source: https://cloud.laravel.com/docs/api/cli After a successful deployment, use the `--open` flag with the `deploy` command to automatically open your application in the browser. ```bash cloud deploy --open ``` -------------------------------- ### Install Laravel Nightwatch Package Source: https://cloud.laravel.com/docs/knowledge-base/nightwatch-on-cloud Install the Nightwatch package locally using Composer before deploying. This updates your composer.json and composer.lock files. ```bash composer require laravel/nightwatch ``` -------------------------------- ### Install Stripe CLI Projects Plugin Source: https://cloud.laravel.com/docs/api/stripe-projects Install the Stripe CLI and the projects plugin to begin managing Laravel Cloud resources. ```bash stripe plugin install projects ``` ```bash stripe projects init ``` -------------------------------- ### Install Laravel Cloud CLI Source: https://cloud.laravel.com/docs/api/cli Install the CLI globally using Composer. Ensure your global vendor binaries directory is in your PATH. ```bash composer global require laravel/cloud-cli ``` -------------------------------- ### Provision Multiple Resources Source: https://cloud.laravel.com/docs/api/stripe-projects Provision a plan, an application, and a MySQL database in sequence. Services are components of a plan. ```bash stripe projects add laravel_cloud/starter --name my-plan ``` ```bash stripe projects add laravel_cloud/application --config '{"name":"My App","repository":"laravel/laravel","region":"us-east-1"}' ``` ```bash stripe projects add laravel_cloud/mysql --name my-database ``` -------------------------------- ### Create instance Source: https://cloud.laravel.com/docs/llms.txt Create a new instance for an environment. ```APIDOC ## POST /environments/:environmentId/instances ### Description Create a new instance for an environment. ### Method POST ### Endpoint /environments/:environmentId/instances ### Parameters #### Request Body - **size** (string) - Required - The desired size for the instance (e.g., 'small', 'medium', 'large'). - **region** (string) - Required - The region where the instance should be created. ### Request Example ```json { "size": "medium", "region": "us-east-1" } ``` ### Response #### Success Response (201 Created) - **id** (string) - The unique identifier of the newly created instance. - **environment_id** (string) - The ID of the environment this instance belongs to. - **size** (string) - The size of the instance. - **region** (string) - The region of the instance. - **status** (string) - The status of the instance (e.g., 'creating', 'running'). - **created_at** (string) - The timestamp when the instance was created. ``` -------------------------------- ### List Environments Source: https://cloud.laravel.com/docs/api/cli Lists all environments for a given application. ```bash cloud environment:list ``` -------------------------------- ### Instance Pricing Details Source: https://cloud.laravel.com/docs/pricing Example of pricing details for a specific instance type, including monthly cost and per-second rate. ```json "pro.m-2vcpu-8gb": { "pricePerMonth": 68, "pricePerSecond": 2.810847e-5, "secondsToCap": 2419200 } ``` -------------------------------- ### Get Instance Details Source: https://cloud.laravel.com/docs/api/cli Retrieves detailed information about a specific instance. ```bash cloud instance:get ``` -------------------------------- ### Initiate Deployment Source: https://cloud.laravel.com/docs/api/deployments/initiate-deployment Initiates a deployment for the given environment. This operation requires specifying the environment identifier in the URL. ```APIDOC ## POST /environments/{environment}/deployments ### Description Initiate a deployment for the given environment. ### Method POST ### Endpoint /environments/{environment}/deployments ### Parameters #### Path Parameters - **environment** (string) - Required - The environment identifier #### Request Body This endpoint does not explicitly define a request body in the provided OpenAPI schema, but typically would include deployment-specific details if not inferred from the environment. ### Response #### Success Response (200) - **data** (DeploymentResource) - The resource representing the initiated deployment. - **included** (array) - An array that may contain related resources like `EnvironmentResource` or `UserResource`. #### Response Example ```json { "data": { "id": "string", "type": "deployments", "attributes": { "status": "string", "branch_name": "string", "commit_hash": "string", "commit_message": "string", "commit_author": "string | null", "failure_reason": "string | null", "php_major_version": "string", "build_command": "string | null", "node_version": "object", "uses_octane": "boolean", "started_at": "string | null", "finished_at": "string | null" }, "relationships": { "environment": { "data": "object | null" }, "initiator": { "data": "object | null" } }, "links": { "self": "string" } }, "included": [ { "id": "string", "type": "environments", "attributes": { "name": "string", "url": "string", "php_version": "string", "uses_octane": "boolean", "created_at": "string", "updated_at": "string" }, "links": { "self": "string" } } ] } ``` #### Error Responses - **404** - `ModelNotFoundException` - The specified environment was not found. - **422** - `ValidationException` - The request payload is invalid. ```