Skip to content

Commit c3b6cce

Browse files
committed
feat: add syncLeafDb line
1 parent d8fba21 commit c3b6cce

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

public/index.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,21 @@
8888
*/
8989
Leaf\Database::config(DatabaseConfig());
9090

91+
/*
92+
|--------------------------------------------------------------------------
93+
| Sync Leaf Db with ORM and connect
94+
|--------------------------------------------------------------------------
95+
|
96+
| Sync Leaf Db with ORM and connect to the database
97+
| This allows you to use Leaf Db without having to initialize it
98+
| in your controllers.
99+
|
100+
| This is optional, you can still use Leaf Db in your controllers. If you
101+
| want to opt into this, just uncomment the line below.
102+
|
103+
*/
104+
// Leaf\Database::syncLeafDb();
105+
91106
/*
92107
|--------------------------------------------------------------------------
93108
| Initialise Config

0 commit comments

Comments
 (0)