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

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 a77702a commit 2c20213
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,6 @@
*/
Leaf\View::attach(\Leaf\Blade::class);

/*
|--------------------------------------------------------------------------
| Initialise Config
|--------------------------------------------------------------------------
|
| Pass your application configuration into your leaf app.
|
*/
Leaf\Config::set(AppConfig());

/*
|--------------------------------------------------------------------------
| Load application paths
Expand Down Expand Up @@ -90,24 +80,34 @@

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

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

/*
|--------------------------------------------------------------------------
| Default fix for CORS
|--------------------------------------------------------------------------
|
| This just prevents the connection client from throwing
| CORS errors at you.
|
*/
app()->cors(CorsConfig());

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

0 comments on commit 2c20213

Please sign in to comment.