1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 16:40:05 +01:00
Files
laravel-valet/cli/drivers
Chris Brown 67546f1fc3 Updated loading of server environment variables
- added `putenv()` for Laravel compatibility
- added `$_ENV` for generic compatibility
- added wildcard processing, so site array named `*` gets processed always (if present), and then site-specific entries are added and will override the wildcard.

Sample `.valet-env.php`:
```php
<?php

return [
    '*' => [
        'USER' => 'vagrant',
    ],
    'demo' => [
        'MY_CUSTOM_VAR' => 'special_value',
        'USER' => 'travis',
    ],
];
```
(Note: order of entries in the array is irrelevant, as the parser reads `*` first, followed by site-specific entries.)
2019-01-02 17:27:02 -05:00
..
2016-05-10 08:29:24 -05:00
2016-05-12 16:20:03 -05:00
2016-05-10 08:29:24 -05:00
2018-07-20 12:05:14 +02:00
2017-01-09 23:03:30 -05:00
2017-05-23 17:13:13 +02:00
2018-01-08 20:55:31 -06:00
2018-10-17 16:30:45 -04:00