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 6ca4a55 commit 4f37931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/db.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
$eloquent = new Capsule;

$eloquent->addConnection([
'driver' => env('DB_DRIVER') ?? 'mysql',
'driver' => getenv('DB_DRIVER') ?? 'mysql',
'host' => getenv('DB_HOST'),
'port' => getenv('DB_PORT') ?? '',
'database' => getenv('DB_NAME'),
Expand Down

0 comments on commit 4f37931

Please sign in to comment.