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

Commit 7f4f82e

Browse files
committed
feat: add syncLeafDb line
1 parent c309a17 commit 7f4f82e

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

index.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,21 @@
4040
*/
4141
Database::config(DatabaseConfig());
4242

43+
/*
44+
|--------------------------------------------------------------------------
45+
| Sync Leaf Db with ORM and connect
46+
|--------------------------------------------------------------------------
47+
|
48+
| Sync Leaf Db with ORM and connect to the database
49+
| This allows you to use Leaf Db without having to initialize it
50+
| in your controllers.
51+
|
52+
| This is optional, you can still use Leaf Db in your controllers. If you
53+
| want to opt into this, just uncomment the line below.
54+
|
55+
*/
56+
// Leaf\Database::syncLeafDb();
57+
4358
/*
4459
|--------------------------------------------------------------------------
4560
| Attach blade view

0 commit comments

Comments
 (0)