Skip to content

Commit

Permalink
feat: config
Browse files Browse the repository at this point in the history
  • Loading branch information
altynbek07 committed Jul 18, 2020
1 parent 593b1ed commit 1ac91c5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ You can install the package via composer:
composer require altynbek07/laravel-uds
```

You should set these environment variables in your `.env` file:

```env
UDS_ID=YourCompanyId
UDS_KEY=YourApiKey
```

You can publish the config file with:

```bash
Expand All @@ -24,6 +31,14 @@ This is the contents of the published config file:

```php
return [
/**
* Your company ID from UDS
*/
'id' => env('UDS_ID'),
/**
* Your API Key from UDS
*/
'key' => env('UDS_KEY'),
];
```

Expand Down
9 changes: 8 additions & 1 deletion config/uds.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<?php

return [

/**
* Your company ID from UDS
*/
'id' => env('UDS_ID'),
/**
* Your API Key from UDS
*/
'key' => env('UDS_KEY'),
];

0 comments on commit 1ac91c5

Please sign in to comment.