|
1 | 1 | <?php |
2 | 2 |
|
3 | | -// config for Phizz/Phizz |
4 | 3 | return [ |
| 4 | + /* |
| 5 | + |-------------------------------------------------------------------------- |
| 6 | + | Riot Games API Key |
| 7 | + |-------------------------------------------------------------------------- |
| 8 | + | |
| 9 | + | Your Riot Games API key. You can obtain one from the Riot Developer Portal. |
| 10 | + | It is recommended to store this in your .env file as RIOT_API_KEY. |
| 11 | + | |
| 12 | + */ |
| 13 | + 'api_key' => env('RIOT_API_KEY', ''), |
5 | 14 |
|
| 15 | + /* |
| 16 | + |-------------------------------------------------------------------------- |
| 17 | + | Default Platform |
| 18 | + |-------------------------------------------------------------------------- |
| 19 | + | |
| 20 | + | The platform region to use when making API calls. This can be overridden |
| 21 | + | on a per‑call basis. |
| 22 | + | |
| 23 | + */ |
| 24 | + 'default_platform' => env('RIOT_DEFAULT_PLATFORM', \Phizz\Enums\Platform::NA), |
| 25 | + |
| 26 | + /* |
| 27 | + |-------------------------------------------------------------------------- |
| 28 | + | Request Timeout (seconds) |
| 29 | + |-------------------------------------------------------------------------- |
| 30 | + | |
| 31 | + | The maximum number of seconds to wait for a response from the Riot API. |
| 32 | + | |
| 33 | + */ |
| 34 | + 'timeout' => env('RIOT_TIMEOUT', 60), |
| 35 | + |
| 36 | + /* |
| 37 | + |-------------------------------------------------------------------------- |
| 38 | + | Cache Settings |
| 39 | + |-------------------------------------------------------------------------- |
| 40 | + | |
| 41 | + | Enable or disable caching of API responses. |
| 42 | + | |
| 43 | + */ |
| 44 | + 'cache' => [ |
| 45 | + 'enabled' => env('RIOT_CACHE_ENABLED', true), |
| 46 | + 'default' => env('RIOT_CACHE_TTL', 60), // 1 minute |
| 47 | + 'method' => [ |
| 48 | + // You can define method‑specific cache ttl's here |
| 49 | + ], |
| 50 | + ], |
| 51 | + |
| 52 | + /* |
| 53 | + |-------------------------------------------------------------------------- |
| 54 | + | Logging |
| 55 | + |-------------------------------------------------------------------------- |
| 56 | + | |
| 57 | + | Log all API requests and responses? Useful for debugging. |
| 58 | + | |
| 59 | + */ |
| 60 | + 'logging' => [ |
| 61 | + 'enabled' => env('RIOT_LOGGING_ENABLED', false), |
| 62 | + ], |
6 | 63 | ]; |
0 commit comments