Skip to content

Commit cbbc3b1

Browse files
committed
feat: switch to direct leaf config
1 parent 7e5da71 commit cbbc3b1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

public/index.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,34 +80,34 @@
8080

8181
/*
8282
|--------------------------------------------------------------------------
83-
| Initialise Config
83+
| Additional Leaf Database Config
8484
|--------------------------------------------------------------------------
8585
|
86-
| Pass your application configuration into your leaf app.
86+
| Load leaf database configuration
8787
|
8888
*/
89-
Leaf\Config::set(AppConfig());
89+
Leaf\Database::config(DatabaseConfig());
9090

9191
/*
9292
|--------------------------------------------------------------------------
93-
| Default fix for CORS
93+
| Initialise Config
9494
|--------------------------------------------------------------------------
9595
|
96-
| This just prevents the connection client from throwing
97-
| CORS errors at you.
96+
| Pass your application configuration into your leaf app.
9897
|
9998
*/
100-
app()->cors(CorsConfig());
99+
app()->config(AppConfig());
101100

102101
/*
103102
|--------------------------------------------------------------------------
104-
| Additional Leaf Database Config
103+
| Default fix for CORS
105104
|--------------------------------------------------------------------------
106105
|
107-
| Load leaf database configuration
106+
| This just prevents the connection client from throwing
107+
| CORS errors at you.
108108
|
109109
*/
110-
Leaf\Database::config(DatabaseConfig());
110+
app()->cors(CorsConfig());
111111

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

0 commit comments

Comments
 (0)