Skip to content

Commit d509d17

Browse files
committed
Update textlocal.php config with sample/example stub for custom usage
1 parent 2409b6f commit d509d17

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

config/textlocal.php

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
1-
<?php
1+
<?php
22

33
return [
4-
'username' => env('TEXTLOCAL_USERNAME'),
5-
'password' => env('TEXTLOCAL_PASSWORD'),
6-
'hash' => env('TEXTLOCAL_HASH'),
7-
'api_key' => env('TEXTLOCAL_API_KEY'),
8-
'sender' => env('TEXTLOCAL_SENDER'),
4+
'username' => env('TEXTLOCAL_USERNAME'),
5+
'password' => env('TEXTLOCAL_PASSWORD'),
6+
'hash' => env('TEXTLOCAL_HASH'),
7+
'api_key' => env('TEXTLOCAL_API_KEY'),
8+
'sender' => env('TEXTLOCAL_SENDER', 'DOCONL'),
99
'request_urls' => [
1010
'IN' => 'https://api.textlocal.in/',
11-
'UK' => 'https://api.txtlocal.com/'
11+
'UK' => 'https://api.txtlocal.com/',
1212
],
13-
'country' => env('TEXTLOCAL_COUNTRY', 'IN'),
13+
'country' => env('TEXTLOCAL_COUNTRY', 'IN'),
14+
/*
15+
// a sample way to organize custom config when using mutliple on demand config
16+
// uncomment this for that purpose or feel free to use your own implementations
17+
'UK' => [
18+
'username' => env('TEXTLOCAL_USERNAME_UK'),
19+
'password' => env('TEXTLOCAL_PASSWORD_UK'),
20+
'hash' => env('TEXTLOCAL_HASH_UK'),
21+
'api_key' => env('TEXTLOCAL_API_KEY_UK'),
22+
'sender' => env('TEXTLOCAL_SENDER_UK', 'DOCONL'),
23+
'country' => env('TEXTLOCAL_COUNTRY_UK', 'UK'),
24+
],
25+
*/
1426
];

0 commit comments

Comments
 (0)