Skip to content

Commit

Permalink
Fix problems with DI and Eloquent
Browse files Browse the repository at this point in the history
- Thunk "vlucas/phpdotenv": "^v4.2.0"
- db.php uses `getenv()` instead of the one time it used `env()`
  • Loading branch information
RyanNerd committed May 22, 2021
1 parent 4f37931 commit 43cee17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"slim/psr7": "^1.4.0",
"slim/slim": "^4.8.0",
"twig/twig": "^3.3.2",
"vlucas/phpdotenv": "^5.3"
"vlucas/phpdotenv": "^v4.2.0"
},
"require-dev": {
"consolidation/robo": "^3.0.3",
Expand Down
2 changes: 1 addition & 1 deletion config/_env.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Dotenv\Dotenv;

$dotEnv = Dotenv::create(__DIR__ . '/../');
$dotEnv = Dotenv::createImmutable(__DIR__ . '/../');
$dotEnv->load();
$dotEnv->required(
[
Expand Down

0 comments on commit 43cee17

Please sign in to comment.