Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit 2c20213

Browse files
committed
feat: switch to direct leaf config
1 parent a77702a commit 2c20213

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

public/index.php

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,6 @@
5050
*/
5151
Leaf\View::attach(\Leaf\Blade::class);
5252

53-
/*
54-
|--------------------------------------------------------------------------
55-
| Initialise Config
56-
|--------------------------------------------------------------------------
57-
|
58-
| Pass your application configuration into your leaf app.
59-
|
60-
*/
61-
Leaf\Config::set(AppConfig());
62-
6353
/*
6454
|--------------------------------------------------------------------------
6555
| Load application paths
@@ -90,24 +80,34 @@
9080

9181
/*
9282
|--------------------------------------------------------------------------
93-
| Default fix for CORS
83+
| Additional Leaf Database Config
9484
|--------------------------------------------------------------------------
9585
|
96-
| This just prevents the connection client from throwing
97-
| CORS errors at you.
86+
| Load leaf database configuration
9887
|
9988
*/
100-
app()->cors(CorsConfig());
89+
Leaf\Database::config(DatabaseConfig());
10190

10291
/*
10392
|--------------------------------------------------------------------------
104-
| Additional Leaf Database Config
93+
| Initialise Config
10594
|--------------------------------------------------------------------------
10695
|
107-
| Load leaf database configuration
96+
| Pass your application configuration into your leaf app.
10897
|
10998
*/
110-
Leaf\Database::config(DatabaseConfig());
99+
app()->config(AppConfig());
100+
101+
/*
102+
|--------------------------------------------------------------------------
103+
| Default fix for CORS
104+
|--------------------------------------------------------------------------
105+
|
106+
| This just prevents the connection client from throwing
107+
| CORS errors at you.
108+
|
109+
*/
110+
app()->cors(CorsConfig());
111111

112112
/*
113113
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)