|
50 | 50 | */ |
51 | 51 | Leaf\View::attach(\Leaf\Blade::class); |
52 | 52 |
|
53 | | -/* |
54 | | -|-------------------------------------------------------------------------- |
55 | | -| Initialise Config |
56 | | -|-------------------------------------------------------------------------- |
57 | | -| |
58 | | -| Pass your application configuration into your leaf app. |
59 | | -| |
60 | | -*/ |
61 | | -Leaf\Config::set(AppConfig()); |
62 | | - |
63 | 53 | /* |
64 | 54 | |-------------------------------------------------------------------------- |
65 | 55 | | Load application paths |
|
90 | 80 |
|
91 | 81 | /* |
92 | 82 | |-------------------------------------------------------------------------- |
93 | | -| Default fix for CORS |
| 83 | +| Additional Leaf Database Config |
94 | 84 | |-------------------------------------------------------------------------- |
95 | 85 | | |
96 | | -| This just prevents the connection client from throwing |
97 | | -| CORS errors at you. |
| 86 | +| Load leaf database configuration |
98 | 87 | | |
99 | 88 | */ |
100 | | -app()->cors(CorsConfig()); |
| 89 | +Leaf\Database::config(DatabaseConfig()); |
101 | 90 |
|
102 | 91 | /* |
103 | 92 | |-------------------------------------------------------------------------- |
104 | | -| Additional Leaf Database Config |
| 93 | +| Initialise Config |
105 | 94 | |-------------------------------------------------------------------------- |
106 | 95 | | |
107 | | -| Load leaf database configuration |
| 96 | +| Pass your application configuration into your leaf app. |
108 | 97 | | |
109 | 98 | */ |
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()); |
111 | 111 |
|
112 | 112 | /* |
113 | 113 | |-------------------------------------------------------------------------- |
|
0 commit comments