Skip to content

Commit f7dec33

Browse files
Update README.md
1 parent 53c1be3 commit f7dec33

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,16 @@ $dotenv->restart(['LOCALE' => 'en']);
7070
- **Available Only In Version 1.0.1 (Review CHANGELOG.md for more changes)**
7171

7272
```php
73+
// Create new instance with autoload
74+
$dotenv = new \NAL\Dotenv\Dotenv('path/to/your/file/.env', true);
75+
76+
// Load manually
77+
$dotenv = new NAL\Dotenv\Dotenv('path/to/your/file/.env');
78+
79+
$dotenv->load();
80+
81+
82+
7383
// if you set your environment variables in group like this,
7484
APP_URL='https://example.com/'
7585
APP_KEY=1234567

0 commit comments

Comments
 (0)