Skip to content

Commit 56ec59c

Browse files
committed
fix : naming
1 parent 07d38a0 commit 56ec59c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

config/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
'host' => env('DB_HOST') ?? '',
1919
'database' => env('DB_HOST') ?? '',
20-
'username' => env('DB_USER') ?? '',
20+
'user' => env('DB_USER') ?? '',
2121
'password' => env('DB_PASSWORD') ?? '',
2222
'dbname' => env('DB_NAME') ?? '',
2323
'driver' => 'pdo_mysql',

src/boot.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
66
$whoops->register();
77

8+
//Load env files
9+
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__.'/../',);
10+
$dotenv->load();
11+
812
$app = new \Scrawler\App();
913

1014
// Register Woops to handle exceptions
@@ -30,7 +34,7 @@
3034
// Register Directories
3135
$app->registerAutoRoute(__DIR__ . '/controllers', 'App\Controllers');
3236

33-
$app->template()->registerDir(__DIR__ . '/views',__DIR__ . '../storage/cache',__DIR__ . '/../assets');
37+
$app->template()->registerDir(__DIR__ . '/views',__DIR__ . '/../storage/framework/cache',__DIR__ . '/../assets');
3438

3539
$app->storage()->setAdapter(new \Scrawler\Adapters\Storage\LocalAdapter(__DIR__ . '/../storage/app'));
3640

0 commit comments

Comments
 (0)