Field Manual Brokerage / Linux / Laravel
← Laravel

config/services.php

On a fresh skeleton replace this file. In a supplied project merge only the exchange key, preserving existing services.

What it is

Complete brokerage practice file. The Assemble project page lists every file in order.

When to use it

On a fresh skeleton replace this file. In a supplied project merge only the exchange key, preserving existing services.

Syntax

mkdir -p 'config'
# Paste the Example below into config/services.php

Example

<?php

declare(strict_types=1);

return [
    'exchange' => [
        'base_url' => env('EXCHANGE_BASE_URL', ''),
        'api_key' => env('EXCHANGE_API_KEY', ''),
        'demo' => (bool) env('EXCHANGE_DEMO', true),
    ],
];

Common mistakes

Use the setup runbook first. Adapt provisional API assumptions to the supplied contract. Merge into supplied applications; do not duplicate the orders migration.

Related topics

API contract: change these points first