composer require bites-development/bites-connector
php artisan vendor:publish --tag="bites"
MASTER_DB_HOST
MASTER_DB_USER
MASTER_DB_PASSWORD
MASTER_DB_DATABASE
Export plan form schema/options from the app code and sync it to middleware mapper storage:
php artisan bites:sync-plan-schemaUseful flags:
php artisan bites:sync-plan-schema --dry-run
php artisan bites:sync-plan-schema --table=subscriptions --app-prefix=martRequired env (recommended):
MIDDLEWARE_SERVER=middleware-no.test
BITES_APP_PREFIX=mart
BITES_MIDDLEWARE_API_TOKEN=your-shared-tokenOptional env:
BITES_PLAN_SCHEMA_SYNC_ENABLED=true
BITES_PLAN_SCHEMA_SYNC_ENDPOINT=/api/webhooks/plans/schema-sync
BITES_PLAN_SCHEMA_SYNC_TIMEOUT=20
BITES_PLAN_SCHEMA_MAX_SNIPPETS=20
BITES_PLAN_SCHEMA_MAX_SNIPPET_CHARS=12000