-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
44 lines (37 loc) · 1.42 KB
/
config.php
File metadata and controls
44 lines (37 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
declare(strict_types=1);
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Config;
return [
/**
* The base directory where Terloquent caches its processed data.
*/
'cache_directory' => App::storagePath('framework/cache/terloquent'),
/**
* Enable Data Caching
*
* Determines whether the parsed data should be cached to disk.
* By default, caching is enabled in production environments.
*/
'cache_enabled' => env(
'TERLOQUENT_CACHE_ENABLED',
Config::string('app.env') === 'production'
),
/**
* Download Timeout
*
* The maximum number of seconds to wait for a CSV download to complete.
*/
'timeout' => env('TERLOQUENT_DOWNLOAD_TIMEOUT'),
/**
* Remote Data Sources
*
* The full raw GitHub URLs for each administrative division CSV file.
*/
'sources' => [
'provinces' => 'https://raw.githubusercontent.com/dominosaurs/id-administrative-divisions/refs/tags/v0.0.1/csv/provinces.csv',
'regencies' => 'https://raw.githubusercontent.com/dominosaurs/id-administrative-divisions/refs/tags/v0.0.1/csv/regencies.csv',
'districts' => 'https://raw.githubusercontent.com/dominosaurs/id-administrative-divisions/refs/tags/v0.0.1/csv/districts.csv',
'villages' => 'https://raw.githubusercontent.com/dominosaurs/id-administrative-divisions/refs/tags/v0.0.1/csv/villages.csv',
],
];