Skip to content

Configuration ​

Overview ​

config/ holds 35 files. Most are standard Laravel or package configs; four are specific to Collage: dam.php, constant.php, roles.php and bigquerylog.php, plus the SSO and passkey configs saml.php and webauthn.php. This page lists every file and then explains the custom ones key by key.

Secret values (keys, passwords, tokens) always come from environment variables. Only the variable names are shown here. See Setup for the full list of names.

All config files ​

FileControls
app.phpApp name, env, debug, URL, timezone (APP_TIMEZONE, defaults to Asia/Kolkata), service providers and facade aliases. Also custom keys: host, image_path, export_url, aws_region, status_page_password_hash, HELP_DESK_*, RADAR_AUTH_KEY.
auth.phpGuards web, api, dam-api, external-api, external-user; providers users, dealer_users, external_app, external_users; password broker users. See Architecture.
backup.phpspatie/laravel-backup: backs up base_path() (excluding vendor and others) to the s3_backup disk, keeps all backups 7 days and daily backups 16 days; notifications by mail and Slack.
bigquerylog.phpBigQuery logging of API requests, jobs, crons and webhooks. Custom, see below.
broadcasting.phpBroadcast connections pusher, ably, redis, log, null; default from BROADCAST_DRIVER.
browser-detect.phphisorange/browser-detect cache (interval 10080, prefix bd4_) and header length limit.
cache.phpCache stores; default from CACHE_DRIVER (file).
constant.phpApp-wide constants, URLs, mail addresses, AWS names, file preview settings, DAM limits and order status maps. Custom, see below.
cors.phpCORS for api/*, dam/*, broadcasting/auth, upload/*; all origins, methods and headers allowed; no credentials.
dam.phpSubscription feature catalogue, plan sizes, payment statuses, Stripe keys. Custom, see below.
database.phpConnections sqlite, mysql (read/write split), mysql_primary, mysql_queue, pgsql, sqlsrv; Redis default and cache.
dompdf.phpbarryvdh/laravel-dompdf options.
excel.phpmaatwebsite/excel import and export options.
filesystems.phpDisks; see Architecture. Default from FILESYSTEM_DRIVER.
hashing.phpbcrypt driver, rounds from BCRYPT_ROUNDS.
image.phpIntervention Image driver: imagick when IMAGE_DRIVER=imagick, otherwise GD.
imap.phpwebklex/laravel-imap accounts (IMAP_*).
l5-swagger.phpSwagger UI at api/documentation, generated docs in storage/api-docs.
larinfo.phpmatriphe/larinfo server info output (kernel, OS, RAM, CPU and so on).
location.phpstevebauman/location: driver IpApi plus fallbacks; MaxMind and token-based providers configured by env. A GeoLite2 City database ships in database/maxmind/.
logging.phpLog channels; default stack = single + weekly. See Architecture.
mail.phpMailers smtp, ses, mailgun, postmark, sendmail, log, array, failover; default from MAIL_MAILER.
passport.phpPassport keys, personal access client, and DB connection (PASSPORT_CONNECTION, default mysql_primary).
queue.phpConnections sync, database, database_migration, beanstalkd, sqs, redis; failed jobs on mysql_queue.
roles.phpRole id to name map. Custom, see below.
saml.phpEnterprise SSO (SAML 2.0) service-provider settings. Custom, see below.
sanctum.phpSanctum stateful domains (SANCTUM_STATEFUL_DOMAINS). Its stateful middleware is commented out of the api group.
scout.phpScout driver (SCOUT_DRIVER), queue (medium), Typesense client settings and collection schemas for DigitalAssets, DigitalAssetsCategory, DamCollection, DigitalAssetsTag. See Search.
services.phpThird-party credentials by name: mailgun, postmark, ses, google, microsoft, lariat_basecamp, an AWS block, slack, zip_worker. SocialMiddleware checks services.google, services.facebook, services.microsoft.
session.phpSession driver (SESSION_DRIVER, default file), lifetime, cookie settings.
telescope.phpLaravel Telescope settings and watchers. The provider is commented out in config/app.php.
video-thumbnail.phpPaths to ffmpeg and ffprobe (FFMPEG, FFPROBE).
view.phpBlade view paths and compiled path.
vision.phpGoogle Vision credentials path and API key (VISION_CREDENTIALS_PATH, VISION_API_KEY).
webauthn.phpPasskey relying party and origins. Custom values, see below.

config/dam.php ​

Read as config('dam.*'). Drives the subscription and feature-gating system (see Subscription).

KeyMeaning
subscription_features_groupsGroup key to label: default, admin, asset_management, folder_management, collection_management, notifications, dam_analytics, integrations, support.
subscription_plan_sizeStorage options offered for a plan: 100, 200, 500, 1000 (shown as "1 TB") and unlimited. Each entry has value and display_text.
subscription_featuresThe feature catalogue. Each key has group_name, title, default_value, enable and dependent (features that are toggled with it).
subscription_payment_statuspending, success, fail, cancel.
STRIPE_KEY, STRIPE_SECRETStripe credentials from env. STRIPE_SECRET is read in 16 places; STRIPE_KEY is not read in app/ at this commit.
FACEBOOK_URL, LINKEDIN_URL, YOUTUB_URLSocial links used in the welcome email template emails/Common/userWelcomeEmail.blade.php (env with defaults).
PRODUCT_TAX_CODEStripe tax code for products.

Subscription features ​

GroupFeature keys
defaultstorage (default unlimited), users (default custom, with admin and users set to unlimited), user_management, storage_management, unlimited_bandwidth, bulk_asset_upload, n_column_asset_view_architecture, advance_search_functionality, advance_share_management, meta_data_management, tag_management, bulk_asset_management, nested_folder_management, bulk_folder_modification, bulk_folder_upload, collection_bulk_asset_management, collection_advance_share_management, email_notifications, dam_insights, advance_asset_storage_security, email_support, on_boarding_support, download_with_multiple_resolution
admindam_branding, user_groups, manage_banner_and_tiles, email_branding, custom_brand_url
asset_managementai_based_asset_auto_tagging, public_and_private_asset_customisation, asset_versioning, asset_edit_modification, asset_conversion, per_asset_analytics, asset_embedding, asset_order_management, asset_watermark, image_generation (default 0)
folder_managementfolder_permission_customisation
collection_managementcollection_permission_customisation
notificationssystem_notifications, custom_notification_management
dam_analyticsview_asset_analytics, download_asset_analytics, share_asset_analytics, trending_analytics, search_keyword_analytics, untagged_asset_management, collection_analytics, geo_location_based_analytics, user_analytics
integrationsgoogle_drive_integration, dropbox_integration, dropbox_enterprise_integration, box_integration, acl_wordpress_integration, external_website_integration
supporttechnical_support_at_every_stage

Dependencies declared in dependent:

FeatureDependent features
public_and_private_asset_customisationasset_watermark
asset_watermarkpublic_and_private_asset_customisation
view_asset_analytics, download_asset_analytics, share_asset_analytics, trending_analytics, collection_analyticsgeo_location_based_analytics, user_analytics

All features except storage, users and image_generation default to false, and every feature has enable set to false. A workspace's actual values are stored in the features column of its subscription (SubscriptionUsers); for example DAMStorageLimit reads features.storage.default_value.

config/constant.php ​

Read as config('constant.*').

Key(s)Meaning
APP_NAME, APP_URL, FRONTEND_URLApp name and URLs. FRONTEND_URL is the admin app base URL used in links and emails. Every read in app/ goes through config('constant.FRONTEND_URL') (93 reads in 25 files), so it still works with a cached config; before that 16 reads called env('FRONTEND_URL') directly and returned null under php artisan config:cache. Only config/saml.php (sp.entity_id_base default) still reads the env variable.
DAM_FRONTEND_URL, DAM_APP_NAMEBrand portal base URL and name.
MAIL_FROM_ADDRESS, MAIL_FROM_NAME, MAIL_SALES_ADDRESS, SUPPORT_MAIL_ADDRESS, MAIL_ALERT_ADDRESS, MAIL_NOTIFICATION_ADDRESS, MAIL_TO_ADDRESS, MAIL_ADMIN_ADDRESSSender and internal recipient addresses (env).
PERPAGEDATAPage size, default 50.
MOBILEPERPAGEDATAMobile page size, default 20 (not read in app/ at this commit).
GOOGLE_KEYGoogle API key (used by the base Controller distance lookup). Read through config('constant.GOOGLE_KEY') with no hard-coded fallback; without a key the lookup returns nothing.
OPENROUTESERVICE_KEYOpenRouteService key for ZipCode distance lookups (replaces a key that was hard-coded in app/ZipCode/ZipCode.php). Without it the lookup returns false.
USER_PLACEHOLDER_IMGDefault avatar image.
AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION, AWS_BUCKET, AWS_BUCKET2, AWS_URL2, AWS_DISTRIBUTION_IDAWS names read directly by DAM code (S3 buckets, CloudFront distribution).
LEAD_STATUS, OLD_LEAD_STATUS, MAP_LEAD_STATUSLM (lead management) status colours, legacy numeric statuses, and the map from legacy to current status names. Used by the lead imports.
FILE_PREVIEWS_API_KEY, FILE_PREVIEWS_SECRETE_KEYFilePreviews.io credentials (env).
FILE_PREVIEW_SUPPORT_FORMATExtensions sent to FilePreviews for thumbnails (design files, office documents, audio, video, fonts, RAW camera formats and others, for example psd, ai, pdf, docx, mp4, svg).
FILE_PREVIEWS_OPTIONOptions sent to FilePreviews: pages 1, format webp, metadata ["exif"].
STORAGE_LIMITenv('STORAGE_LIMIT', 10000) * 1000 * 1000. Not read in app/ at this commit.
AUTO_TAGTurns AI auto-tagging on (default false).
TRIAL_DAYSTrial length in days, default 14.
CNAMETarget for custom domain CNAME records.
MAX_BULK_OPERATION_LIMITHard cap on ids a select-all endpoint returns or a bulk operation accepts, default 5000.
ORDER_STATUSAsset order statuses: 1 In-Progress, 2 Shipped, 3 Delivered, 4 Cancelled.
ORDER_STATUS_COLOR, ORDER_STATUS_BACKGROUND_COLORWeb text and background colours per order status.
MOBILE_ORDER_STATUS_COLOR, MOBILE_ORDER_STATUS_BACKGROUND_COLORMobile colours per order status.
DAM_FCM_SERVER_KEYFirebase Cloud Messaging key for push notifications (env).
ORDER_NUMBERFallback order number (100) when damAssetOrderNumberGenerate() returns nothing.

Code also reads constant.HEROKU_API_KEY in two places, but that key is commented out in constant.php, so it resolves to null.

config/roles.php ​

Maps role ids to names:

IdRole
1Super Admin
2Admin
3User
4Client

config/bigquerylog.php ​

KeyMeaning
enabledMaster switch (BIGQUERY_LOG_ENABLED, default false). Checked by LogApiRequests and BigQueryLogServiceProvider.
project_id, datasetBigQuery project and dataset (BIGQUERY_DATASET, default logs_dev; one dataset per environment).
key_fileService-account JSON path (BIGQUERY_KEY_FILE). Relative paths resolve from the project root; empty means Application Default Credentials.
spool_pathstorage/app/bigquery-spool, where NDJSON rows are buffered.
max_response_bodyResponse body bytes kept per request, default 10240.
max_request_dataRequest data larger than this (default 65536) is replaced by a stub.
excluded_pathsNever logged: up, health, api/health.
sensitive_keysMasked request keys: passwords, tokens, authorization, secret, client_secret, api_key, card_number, cvv, and SAML payload fields (samlresponse, samlrequest, relaystate).

config/saml.php ​

Shared SP settings for Enterprise SSO. Per-workspace values (IdP URL, certificate, allowed domains) live in workspace_sso_connections. See Authentication.

KeyMeaning
sp.entity_id_baseEntity ID base; the per-workspace entity ID is {entity_id_base}/{url_slug}. Defaults to FRONTEND_URL + /sso.
sp.x509cert_path, sp.private_key_pathSP key pair, default storage/keys/saml/sp.crt and sp.key. Only needed for signed requests or encrypted assertions.
sp.sign_authn_requestsSign AuthnRequests, default false.
recheck_daysDays a member may enter an SSO workspace before signing in through the IdP again, default 7. Enforced by VerifyUserWithWorkSpace through SsoEntryCheck.
recheck_failure_hold_minutesMinutes to keep the workspace closed after a refused re-check, default 10.
token_ttl_daysLifetime of Passport tokens issued by SSO login, default 7.
stale_days"No sign-in in N days" filter on the Members page, default 30.
domain_verification.record_prefixSSO_DOMAIN_TXT_PREFIX, default _collage-verify. Host label of the DNS TXT record that proves an allowed domain.
domain_verification.value_prefixcollage-verify= (not env). The TXT value is this plus the domain's token.
domain_verification.public_email_domains31 public mailbox domains (Gmail, Outlook, Yahoo, iCloud, Proton, GMX, Zoho, Yandex and others) that can never be an SSO domain. See SSO domain verification.
metadata_timeout, metadata_max_bytesIdP metadata fetch limits (15 seconds, 2 MB).
extra_return_originsExtra origins the SAML return may redirect to, besides FRONTEND_URL and verified custom domains.
providersPer-provider email and stable-id attributes for microsoft, google, okta, other (null means use the NameID).
name_attributes, given_name_attributes, surname_attributesAttributes tried in order to name a just-in-time created user.

config/webauthn.php ​

KeyMeaning
relying_party.nameWEBAUTHN_NAME, falls back to the app name.
relying_party.idWEBAUTHN_ID, the registrable domain shared by frontend and API.
originsWEBAUTHN_ORIGINS, the frontend origins where the ceremonies run.
challenge16 random bytes, 60 second timeout, key _webauthn. Stored in the cache by App\WebAuthn\CacheChallengeRepository; enrolment challenges are keyed to the user they were issued to.
reauth.token_max_age_minutesWEBAUTHN_REAUTH_TOKEN_MAX_AGE_MINUTES, default 10. Accounts without a password may add or remove a passkey only on an access token issued this recently.