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 new leaf config api
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Aug 25, 2024
1 parent c3a041a commit 2beabd4
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@
|--------------------------------------------------------------------------
|
| Since blade no longer ships with Leaf by default, we
| can attach blade back to Leaf so you can use Leaf MVC
| as you've always used it.
| can attach blade back to Leaf. If you want to use blade
| in your application, you can uncomment the line below.
|
*/
Leaf\View::attach(\Leaf\Blade::class);
// Leaf\Config::attachView(\Leaf\Blade::class);

/*
|--------------------------------------------------------------------------
Expand All @@ -87,15 +87,16 @@
|--------------------------------------------------------------------------
|
| Sync Leaf Db with ORM and connect to the database
| This allows you to use Leaf Db and Leaf Auth without
| having to initialize them in your controllers.
| This allows you to use Leaf Db without having
| to initialize it in your controllers.
|
| If you want to use a different connection from those
| used in, your models, you can remove the line below and
| used in your models, you can remove the line below and
| add your own connection with:
| db()->connect(...)
|
| **Uncomment the line below to use Leaf Db or Auth**
| **Uncomment the line below to use Leaf Db**
| **You don't need this line to use Leaf Auth**
*/
// \Leaf\Database::initDb();

Expand Down

0 comments on commit 2beabd4

Please sign in to comment.