File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 17
17
18
18
'host ' => env ('DB_HOST ' ) ?? '' ,
19
19
'database ' => env ('DB_HOST ' ) ?? '' ,
20
- 'username ' => env ('DB_USER ' ) ?? '' ,
20
+ 'user ' => env ('DB_USER ' ) ?? '' ,
21
21
'password ' => env ('DB_PASSWORD ' ) ?? '' ,
22
22
'dbname ' => env ('DB_NAME ' ) ?? '' ,
23
23
'driver ' => 'pdo_mysql ' ,
Original file line number Diff line number Diff line change 5
5
$ whoops ->pushHandler (new \Whoops \Handler \PrettyPageHandler );
6
6
$ whoops ->register ();
7
7
8
+ //Load env files
9
+ $ dotenv = Dotenv \Dotenv::createImmutable (__DIR__ .'/../ ' ,);
10
+ $ dotenv ->load ();
11
+
8
12
$ app = new \Scrawler \App ();
9
13
10
14
// Register Woops to handle exceptions
30
34
// Register Directories
31
35
$ app ->registerAutoRoute (__DIR__ . '/controllers ' , 'App\Controllers ' );
32
36
33
- $ app ->template ()->registerDir (__DIR__ . '/views ' ,__DIR__ . '../storage/cache ' ,__DIR__ . '/../assets ' );
37
+ $ app ->template ()->registerDir (__DIR__ . '/views ' ,__DIR__ . '/ ../storage/framework /cache ' ,__DIR__ . '/../assets ' );
34
38
35
39
$ app ->storage ()->setAdapter (new \Scrawler \Adapters \Storage \LocalAdapter (__DIR__ . '/../storage/app ' ));
36
40
You can’t perform that action at this time.
0 commit comments