Skip to main content

Configuration

Sanvex uses config/sanvex.php for core settings. Driver credentials and OAuth app settings are usually set in .env (see each driver’s Configuration page). Publish config only when you need to edit it in your app:

Core (all apps)

Register custom driver classes in the drivers array in config/sanvex.php.

driver_configs

Optional per-driver block for OAuth client id/secret, redirect URI, and auth mode. Set matching .env variables for each driver you use — see that driver’s Configuration page.
Add entries under driver_configs in published config/sanvex.php only when you want to override defaults. Otherwise .env is enough.

Driver configuration guides

Quick comparison

Step-by-step setup: Integration guide. CLI credentials: Authentication. Per-user keys: Tenancy.