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

Commit 2beabd4

Browse files
committed
feat: switch to new leaf config api
1 parent c3a041a commit 2beabd4

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

public/index.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@
6262
|--------------------------------------------------------------------------
6363
|
6464
| Since blade no longer ships with Leaf by default, we
65-
| can attach blade back to Leaf so you can use Leaf MVC
66-
| as you've always used it.
65+
| can attach blade back to Leaf. If you want to use blade
66+
| in your application, you can uncomment the line below.
6767
|
6868
*/
69-
Leaf\View::attach(\Leaf\Blade::class);
69+
// Leaf\Config::attachView(\Leaf\Blade::class);
7070

7171
/*
7272
|--------------------------------------------------------------------------
@@ -87,15 +87,16 @@
8787
|--------------------------------------------------------------------------
8888
|
8989
| Sync Leaf Db with ORM and connect to the database
90-
| This allows you to use Leaf Db and Leaf Auth without
91-
| having to initialize them in your controllers.
90+
| This allows you to use Leaf Db without having
91+
| to initialize it in your controllers.
9292
|
9393
| If you want to use a different connection from those
94-
| used in, your models, you can remove the line below and
94+
| used in your models, you can remove the line below and
9595
| add your own connection with:
9696
| db()->connect(...)
9797
|
98-
| **Uncomment the line below to use Leaf Db or Auth**
98+
| **Uncomment the line below to use Leaf Db**
99+
| **You don't need this line to use Leaf Auth**
99100
*/
100101
// \Leaf\Database::initDb();
101102

0 commit comments

Comments
 (0)