> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ghostable.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Laravel Cloud

> Deploy Ghostable during Laravel Cloud builds.

<Warning>
  Ghostable CLI 1.x is legacy. Prefer the current [Desktop
  docs](/desktop/v1/getting-started/overview) or [CLI 2.x
  docs](/cli/v2/getting-started/installation) for new work.
</Warning>

To use Ghostable during deployments with [Laravel Cloud](https://cloud.laravel.com):

1. Open the application you want to configure.
2. Go to Environments and select the environment you want to configure.
3. Go to Settings → General → Custom environment variables → Reveal secrets.
4. Add your Ghostable CI token.

Example:

```bash theme={null}
GHOSTABLE_CI_TOKEN="YOUR_TOKEN_HERE"
```

5. Go to Settings → Deployments → Build commands
6. Add the Ghostable build command before your config:cache step.

Example:

```bash theme={null}
composer install --no-dev

npm ci --audit false
npm run build

# Deploy environment variables from Ghostable
php vendor/bin/ghostable deploy:cloud

# Rebuild Laravel config cache so new vars are applied
LARAVEL_CLOUD=1 php artisan config:cache
```
