Raised: $0
0% of monthly goal Help us cross the finish line!
Goal: $12,000
Raised: $0 Goal: $12,000
0% of monthly goal Help us cross the finish line!
Sponsor DDEV

If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.

tests

ddev-laravel-cloud

ddev pull laravel-cloud for Laravel and Craft CMS apps hosted on Laravel Cloud: replaces your local DDEV database with a fresh production dump (and, for Craft, syncs the production asset files), using credentials read live from Laravel Cloud. Production is only ever read from – the recipe defines no push commands.

What it does

Requirements

Install

ddev add-on get flowsa/ddev-laravel-cloud
ddev dotenv set .ddev/.env.laravel-cloud --laravel-cloud-env-id=env-xxxxxxxx
ddev restart

Find the environment ID with cloud env:list. Commit .ddev/.env.laravel-cloud – it contains no secrets, only identifiers and options.

Usage

ddev pull laravel-cloud                  # database + asset files
ddev pull laravel-cloud --skip-files     # database only
ddev pull laravel-cloud --skip-db        # asset files only
ddev pull laravel-cloud -y               # skip the confirmation prompt

The imported database carries production user accounts – sign in with production credentials afterwards.

Configuration

Set per-project options in .ddev/.env.laravel-cloud (via ddev dotenv set), or override once with ddev pull laravel-cloud --environment="KEY=value":

Variable Default Purpose
LARAVEL_CLOUD_ENV_ID – (required) The Cloud environment to pull from
LARAVEL_CLOUD_TABLE_PREFIX craft_ Craft table prefix, for the asset file list
LARAVEL_CLOUD_ASSET_ROOT public/uploads/files Where Craft asset files land locally
LARAVEL_CLOUD_DOWNLOAD_JOBS 6 Parallel asset downloads
LARAVEL_CLOUD_PGSSLMODE require sslmode for the production Postgres connection

The post-pull steps live in .ddev/config.laravel-cloud.yaml; edit it (removing its #ddev-generated line) to customise them.

Notes

Credits

Contributed and maintained by Flow Communications.

If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.