also looking at this
Add env file checker
#45
2 files
+21
-17
Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.
| @@ -4,7 +4,7 @@ | ||
| 4 | 4 | "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", |
| 5 | 5 | "This file is @generated automatically" |
| 6 | 6 | ], |
| 7 | "content-hash": "cba54d5f31b561344ec7d6c9d78f2c00", | |
| 7 | "content-hash": "31d096966aaebed73b9a2e1749db54bc", | |
| 8 | 8 | "packages": [ |
| 9 | 9 | { |
| 10 | 10 | "name": "brick/math", |
| @@ -804,16 +804,16 @@ | ||
| 804 | 804 | }, |
| 805 | 805 | { |
| 806 | 806 | "name": "laravel/framework", |
| 807 | "version": "v8.35.1", | |
| 807 | "version": "v8.36.2", | |
| 808 | 808 | "source": { |
| 809 | 809 | "type": "git", |
| 810 | 810 | "url": "https://github.com/laravel/framework.git", |
| 811 | "reference": "d118c0df39e7524131176aaf76493eae63a8a602" | |
| 811 | "reference": "0debd8ad6b5aa1f61ccc73910adf049af4ca0444" | |
| 812 | 812 | }, |
| 813 | 813 | "dist": { |
| 814 | 814 | "type": "zip", |
| 815 | "url": "https://api.github.com/repos/laravel/framework/zipball/d118c0df39e7524131176aaf76493eae63a8a602", | |
| 816 | "reference": "d118c0df39e7524131176aaf76493eae63a8a602", | |
| 815 | "url": "https://api.github.com/repos/laravel/framework/zipball/0debd8ad6b5aa1f61ccc73910adf049af4ca0444", | |
| 816 | "reference": "0debd8ad6b5aa1f61ccc73910adf049af4ca0444", | |
| 817 | 817 | "shasum": "" |
| 818 | 818 | }, |
| 819 | 819 | "require": { |
| @@ -964,7 +964,7 @@ | ||
| 964 | 964 | "framework", |
| 965 | 965 | "laravel" |
| 966 | 966 | ], |
| 967 | "time": "2021-03-30T21:34:17+00:00" | |
| 967 | "time": "2021-04-07T12:37:22+00:00" | |
| 968 | 968 | }, |
| 969 | 969 | { |
| 970 | 970 | "name": "league/commonmark", |
| @@ -1561,16 +1561,16 @@ | ||
| 1561 | 1561 | }, |
| 1562 | 1562 | { |
| 1563 | 1563 | "name": "opis/closure", |
| 1564 | "version": "3.6.1", | |
| 1564 | "version": "3.6.2", | |
| 1565 | 1565 | "source": { |
| 1566 | 1566 | "type": "git", |
| 1567 | 1567 | "url": "https://github.com/opis/closure.git", |
| 1568 | "reference": "943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5" | |
| 1568 | "reference": "06e2ebd25f2869e54a306dda991f7db58066f7f6" | |
| 1569 | 1569 | }, |
| 1570 | 1570 | "dist": { |
| 1571 | 1571 | "type": "zip", |
| 1572 | "url": "https://api.github.com/repos/opis/closure/zipball/943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5", | |
| 1573 | "reference": "943b5d70cc5ae7483f6aff6ff43d7e34592ca0f5", | |
| 1572 | "url": "https://api.github.com/repos/opis/closure/zipball/06e2ebd25f2869e54a306dda991f7db58066f7f6", | |
| 1573 | "reference": "06e2ebd25f2869e54a306dda991f7db58066f7f6", | |
| 1574 | 1574 | "shasum": "" |
| 1575 | 1575 | }, |
| 1576 | 1576 | "require": { |
| @@ -1618,7 +1618,7 @@ | ||
| 1618 | 1618 | "serialization", |
| 1619 | 1619 | "serialize" |
| 1620 | 1620 | ], |
| 1621 | "time": "2020-11-07T02:01:34+00:00" | |
| 1621 | "time": "2021-04-09T13:42:10+00:00" | |
| 1622 | 1622 | }, |
| 1623 | 1623 | { |
| 1624 | 1624 | "name": "orchestra/testbench", |
| @@ -7081,16 +7081,16 @@ | ||
| 7081 | 7081 | }, |
| 7082 | 7082 | { |
| 7083 | 7083 | "name": "nunomaduro/collision", |
| 7084 | "version": "v5.3.0", | |
| 7084 | "version": "v5.4.0", | |
| 7085 | 7085 | "source": { |
| 7086 | 7086 | "type": "git", |
| 7087 | 7087 | "url": "https://github.com/nunomaduro/collision.git", |
| 7088 | "reference": "aca63581f380f63a492b1e3114604e411e39133a" | |
| 7088 | "reference": "41b7e9999133d5082700d31a1d0977161df8322a" | |
| 7089 | 7089 | }, |
| 7090 | 7090 | "dist": { |
| 7091 | 7091 | "type": "zip", |
| 7092 | "url": "https://api.github.com/repos/nunomaduro/collision/zipball/aca63581f380f63a492b1e3114604e411e39133a", | |
| 7093 | "reference": "aca63581f380f63a492b1e3114604e411e39133a", | |
| 7092 | "url": "https://api.github.com/repos/nunomaduro/collision/zipball/41b7e9999133d5082700d31a1d0977161df8322a", | |
| 7093 | "reference": "41b7e9999133d5082700d31a1d0977161df8322a", | |
| 7094 | 7094 | "shasum": "" |
| 7095 | 7095 | }, |
| 7096 | 7096 | "require": { |
| @@ -7161,7 +7161,7 @@ | ||
| 7161 | 7161 | "type": "patreon" |
| 7162 | 7162 | } |
| 7163 | 7163 | ], |
| 7164 | "time": "2021-01-25T15:34:13+00:00" | |
| 7164 | "time": "2021-04-09T13:38:32+00:00" | |
| 7165 | 7165 | }, |
| 7166 | 7166 | { |
| 7167 | 7167 | "name": "pestphp/pest", |
| @@ -44,8 +44,12 @@ class Client | ||
| 44 | 44 | * |
| 45 | 45 | * @return void |
| 46 | 46 | */ |
| 47 | public function initializeEnv(): void | |
| 47 | public function initializeEnv() | |
| 48 | 48 | { |
| 49 | if (! file_exists(dirname(__DIR__))) { | |
| 50 | return; | |
| 51 | } | |
| 52 | ||
| 49 | 53 | $dotenv = Dotenv::createImmutable(dirname(__DIR__)); |
| 50 | 54 | $dotenv->load(); |
| 51 | 55 | } |