To use Ghostable during deployments with Laravel Cloud:
  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:
GHOSTABLE_CI_TOKEN="YOUR_TOKEN_HERE"
  1. Go to Settings → Deployments → Build commands
  2. Add the Ghostable build command before your config:cache step.
Example:
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