Skip to content

Commit

Permalink
feat : use better env() function
Browse files Browse the repository at this point in the history
  • Loading branch information
ipranjal committed Sep 27, 2024
1 parent 2b25e87 commit 07d38a0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
15 changes: 8 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* General Configurations
*/
'general' => [
'env' => getenv('APP_ENV') ?? 'dev',
'env' => env('APP_ENV') ?? 'dev',
'https' => false,
],

Expand All @@ -15,11 +15,11 @@
*/
'database' => [

'host' => getenv('DB_HOST') ?? '',
'database' => getenv('DB_HOST') ?? '',
'username' => getenv('DB_USER') ?? '',
'password' => getenv('DB_PASSWORD') ?? '',
'dbname' => getenv('DB_NAME') ?? '',
'host' => env('DB_HOST') ?? '',
'database' => env('DB_HOST') ?? '',
'username' => env('DB_USER') ?? '',
'password' => env('DB_PASSWORD') ?? '',
'dbname' => env('DB_NAME') ?? '',
'driver' => 'pdo_mysql',
'port' => '3306',

Expand Down

0 comments on commit 07d38a0

Please sign in to comment.