Skip to content

Commit

Permalink
fix : naming
Browse files Browse the repository at this point in the history
  • Loading branch information
ipranjal committed Sep 27, 2024
1 parent 07d38a0 commit 56ec59c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

'host' => env('DB_HOST') ?? '',
'database' => env('DB_HOST') ?? '',
'username' => env('DB_USER') ?? '',
'user' => env('DB_USER') ?? '',
'password' => env('DB_PASSWORD') ?? '',
'dbname' => env('DB_NAME') ?? '',
'driver' => 'pdo_mysql',
Expand Down
6 changes: 5 additions & 1 deletion src/boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
$whoops->register();

//Load env files
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__.'/../',);
$dotenv->load();

$app = new \Scrawler\App();

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

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

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

Expand Down

0 comments on commit 56ec59c

Please sign in to comment.