Skip to main content
Version: 1.0.0

Configuration

API token

Add your Prelude API token to your .env file. You can find it in the Prelude Dashboard under API Keys.

PRELUDE_API_TOKEN=your-api-token

Publishing the config file

The package works with just the environment variable above, but you can publish the configuration file to customise it:

php artisan vendor:publish --tag=prelude-config

This creates config/prelude.php:

return [
'api_token' => env('PRELUDE_API_TOKEN'),
'base_url' => env('PRELUDE_BASE_URL', 'https://api.prelude.dev'),
];

Available options

KeyEnv variableDefault
api_tokenPRELUDE_API_TOKEN
base_urlPRELUDE_BASE_URLhttps://api.prelude.dev

You should not normally need to change base_url; it exists for targeting a different Prelude environment.