Skip to content

Commit

Permalink
feat: switch to direct leaf config
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Oct 4, 2022
1 parent 7e5da71 commit cbbc3b1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions public/index.php
Expand Up @@ -80,34 +80,34 @@

/*
|--------------------------------------------------------------------------
| Initialise Config
| Additional Leaf Database Config
|--------------------------------------------------------------------------
|
| Pass your application configuration into your leaf app.
| Load leaf database configuration
|
*/
Leaf\Config::set(AppConfig());
Leaf\Database::config(DatabaseConfig());

/*
|--------------------------------------------------------------------------
| Default fix for CORS
| Initialise Config
|--------------------------------------------------------------------------
|
| This just prevents the connection client from throwing
| CORS errors at you.
| Pass your application configuration into your leaf app.
|
*/
app()->cors(CorsConfig());
app()->config(AppConfig());

/*
|--------------------------------------------------------------------------
| Additional Leaf Database Config
| Default fix for CORS
|--------------------------------------------------------------------------
|
| Load leaf database configuration
| This just prevents the connection client from throwing
| CORS errors at you.
|
*/
Leaf\Database::config(DatabaseConfig());
app()->cors(CorsConfig());

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit cbbc3b1

Please sign in to comment.