Appearance
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 ​
| File | Controls |
|---|---|
app.php | App 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.php | Guards web, api, dam-api, external-api, external-user; providers users, dealer_users, external_app, external_users; password broker users. See Architecture. |
backup.php | spatie/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.php | BigQuery logging of API requests, jobs, crons and webhooks. Custom, see below. |
broadcasting.php | Broadcast connections pusher, ably, redis, log, null; default from BROADCAST_DRIVER. |
browser-detect.php | hisorange/browser-detect cache (interval 10080, prefix bd4_) and header length limit. |
cache.php | Cache stores; default from CACHE_DRIVER (file). |
constant.php | App-wide constants, URLs, mail addresses, AWS names, file preview settings, DAM limits and order status maps. Custom, see below. |
cors.php | CORS for api/*, dam/*, broadcasting/auth, upload/*; all origins, methods and headers allowed; no credentials. |
dam.php | Subscription feature catalogue, plan sizes, payment statuses, Stripe keys. Custom, see below. |
database.php | Connections sqlite, mysql (read/write split), mysql_primary, mysql_queue, pgsql, sqlsrv; Redis default and cache. |
dompdf.php | barryvdh/laravel-dompdf options. |
excel.php | maatwebsite/excel import and export options. |
filesystems.php | Disks; see Architecture. Default from FILESYSTEM_DRIVER. |
hashing.php | bcrypt driver, rounds from BCRYPT_ROUNDS. |
image.php | Intervention Image driver: imagick when IMAGE_DRIVER=imagick, otherwise GD. |
imap.php | webklex/laravel-imap accounts (IMAP_*). |
l5-swagger.php | Swagger UI at api/documentation, generated docs in storage/api-docs. |
larinfo.php | matriphe/larinfo server info output (kernel, OS, RAM, CPU and so on). |
location.php | stevebauman/location: driver IpApi plus fallbacks; MaxMind and token-based providers configured by env. A GeoLite2 City database ships in database/maxmind/. |
logging.php | Log channels; default stack = single + weekly. See Architecture. |
mail.php | Mailers smtp, ses, mailgun, postmark, sendmail, log, array, failover; default from MAIL_MAILER. |
passport.php | Passport keys, personal access client, and DB connection (PASSPORT_CONNECTION, default mysql_primary). |
queue.php | Connections sync, database, database_migration, beanstalkd, sqs, redis; failed jobs on mysql_queue. |
roles.php | Role id to name map. Custom, see below. |
saml.php | Enterprise SSO (SAML 2.0) service-provider settings. Custom, see below. |
sanctum.php | Sanctum stateful domains (SANCTUM_STATEFUL_DOMAINS). Its stateful middleware is commented out of the api group. |
scout.php | Scout driver (SCOUT_DRIVER), queue (medium), Typesense client settings and collection schemas for DigitalAssets, DigitalAssetsCategory, DamCollection, DigitalAssetsTag. See Search. |
services.php | Third-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.php | Session driver (SESSION_DRIVER, default file), lifetime, cookie settings. |
telescope.php | Laravel Telescope settings and watchers. The provider is commented out in config/app.php. |
video-thumbnail.php | Paths to ffmpeg and ffprobe (FFMPEG, FFPROBE). |
view.php | Blade view paths and compiled path. |
vision.php | Google Vision credentials path and API key (VISION_CREDENTIALS_PATH, VISION_API_KEY). |
webauthn.php | Passkey relying party and origins. Custom values, see below. |
config/dam.php ​
Read as config('dam.*'). Drives the subscription and feature-gating system (see Subscription).
| Key | Meaning |
|---|---|
subscription_features_groups | Group key to label: default, admin, asset_management, folder_management, collection_management, notifications, dam_analytics, integrations, support. |
subscription_plan_size | Storage options offered for a plan: 100, 200, 500, 1000 (shown as "1 TB") and unlimited. Each entry has value and display_text. |
subscription_features | The feature catalogue. Each key has group_name, title, default_value, enable and dependent (features that are toggled with it). |
subscription_payment_status | pending, success, fail, cancel. |
STRIPE_KEY, STRIPE_SECRET | Stripe 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_URL | Social links used in the welcome email template emails/Common/userWelcomeEmail.blade.php (env with defaults). |
PRODUCT_TAX_CODE | Stripe tax code for products. |
Subscription features ​
| Group | Feature keys |
|---|---|
default | storage (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 |
admin | dam_branding, user_groups, manage_banner_and_tiles, email_branding, custom_brand_url |
asset_management | ai_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_management | folder_permission_customisation |
collection_management | collection_permission_customisation |
notifications | system_notifications, custom_notification_management |
dam_analytics | view_asset_analytics, download_asset_analytics, share_asset_analytics, trending_analytics, search_keyword_analytics, untagged_asset_management, collection_analytics, geo_location_based_analytics, user_analytics |
integrations | google_drive_integration, dropbox_integration, dropbox_enterprise_integration, box_integration, acl_wordpress_integration, external_website_integration |
support | technical_support_at_every_stage |
Dependencies declared in dependent:
| Feature | Dependent features |
|---|---|
public_and_private_asset_customisation | asset_watermark |
asset_watermark | public_and_private_asset_customisation |
view_asset_analytics, download_asset_analytics, share_asset_analytics, trending_analytics, collection_analytics | geo_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_URL | App 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_NAME | Brand 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_ADDRESS | Sender and internal recipient addresses (env). |
PERPAGEDATA | Page size, default 50. |
MOBILEPERPAGEDATA | Mobile page size, default 20 (not read in app/ at this commit). |
GOOGLE_KEY | Google 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_KEY | OpenRouteService 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_IMG | Default avatar image. |
AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION, AWS_BUCKET, AWS_BUCKET2, AWS_URL2, AWS_DISTRIBUTION_ID | AWS names read directly by DAM code (S3 buckets, CloudFront distribution). |
LEAD_STATUS, OLD_LEAD_STATUS, MAP_LEAD_STATUS | LM (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_KEY | FilePreviews.io credentials (env). |
FILE_PREVIEW_SUPPORT_FORMAT | Extensions 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_OPTION | Options sent to FilePreviews: pages 1, format webp, metadata ["exif"]. |
STORAGE_LIMIT | env('STORAGE_LIMIT', 10000) * 1000 * 1000. Not read in app/ at this commit. |
AUTO_TAG | Turns AI auto-tagging on (default false). |
TRIAL_DAYS | Trial length in days, default 14. |
CNAME | Target for custom domain CNAME records. |
MAX_BULK_OPERATION_LIMIT | Hard cap on ids a select-all endpoint returns or a bulk operation accepts, default 5000. |
ORDER_STATUS | Asset order statuses: 1 In-Progress, 2 Shipped, 3 Delivered, 4 Cancelled. |
ORDER_STATUS_COLOR, ORDER_STATUS_BACKGROUND_COLOR | Web text and background colours per order status. |
MOBILE_ORDER_STATUS_COLOR, MOBILE_ORDER_STATUS_BACKGROUND_COLOR | Mobile colours per order status. |
DAM_FCM_SERVER_KEY | Firebase Cloud Messaging key for push notifications (env). |
ORDER_NUMBER | Fallback 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:
| Id | Role |
|---|---|
| 1 | Super Admin |
| 2 | Admin |
| 3 | User |
| 4 | Client |
config/bigquerylog.php ​
| Key | Meaning |
|---|---|
enabled | Master switch (BIGQUERY_LOG_ENABLED, default false). Checked by LogApiRequests and BigQueryLogServiceProvider. |
project_id, dataset | BigQuery project and dataset (BIGQUERY_DATASET, default logs_dev; one dataset per environment). |
key_file | Service-account JSON path (BIGQUERY_KEY_FILE). Relative paths resolve from the project root; empty means Application Default Credentials. |
spool_path | storage/app/bigquery-spool, where NDJSON rows are buffered. |
max_response_body | Response body bytes kept per request, default 10240. |
max_request_data | Request data larger than this (default 65536) is replaced by a stub. |
excluded_paths | Never logged: up, health, api/health. |
sensitive_keys | Masked 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.
| Key | Meaning |
|---|---|
sp.entity_id_base | Entity ID base; the per-workspace entity ID is {entity_id_base}/{url_slug}. Defaults to FRONTEND_URL + /sso. |
sp.x509cert_path, sp.private_key_path | SP key pair, default storage/keys/saml/sp.crt and sp.key. Only needed for signed requests or encrypted assertions. |
sp.sign_authn_requests | Sign AuthnRequests, default false. |
recheck_days | Days a member may enter an SSO workspace before signing in through the IdP again, default 7. Enforced by VerifyUserWithWorkSpace through SsoEntryCheck. |
recheck_failure_hold_minutes | Minutes to keep the workspace closed after a refused re-check, default 10. |
token_ttl_days | Lifetime 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_prefix | SSO_DOMAIN_TXT_PREFIX, default _collage-verify. Host label of the DNS TXT record that proves an allowed domain. |
domain_verification.value_prefix | collage-verify= (not env). The TXT value is this plus the domain's token. |
domain_verification.public_email_domains | 31 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_bytes | IdP metadata fetch limits (15 seconds, 2 MB). |
extra_return_origins | Extra origins the SAML return may redirect to, besides FRONTEND_URL and verified custom domains. |
providers | Per-provider email and stable-id attributes for microsoft, google, okta, other (null means use the NameID). |
name_attributes, given_name_attributes, surname_attributes | Attributes tried in order to name a just-in-time created user. |
config/webauthn.php ​
| Key | Meaning |
|---|---|
relying_party.name | WEBAUTHN_NAME, falls back to the app name. |
relying_party.id | WEBAUTHN_ID, the registrable domain shared by frontend and API. |
origins | WEBAUTHN_ORIGINS, the frontend origins where the ceremonies run. |
challenge | 16 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_minutes | WEBAUTHN_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. |