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
| Key | Env variable | Default |
|---|---|---|
api_token | PRELUDE_API_TOKEN | — |
base_url | PRELUDE_BASE_URL | https://api.prelude.dev |
You should not normally need to change base_url; it exists for targeting a different
Prelude environment.