From c3b6ccee7a0767326d3a0e573ba3fc3838687a21 Mon Sep 17 00:00:00 2001 From: mychidarko Date: Tue, 14 Mar 2023 20:32:57 +0000 Subject: [PATCH] feat: add syncLeafDb line --- public/index.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/public/index.php b/public/index.php index 70bd477..b1a59b0 100644 --- a/public/index.php +++ b/public/index.php @@ -88,6 +88,21 @@ */ Leaf\Database::config(DatabaseConfig()); +/* +|-------------------------------------------------------------------------- +| Sync Leaf Db with ORM and connect +|-------------------------------------------------------------------------- +| +| Sync Leaf Db with ORM and connect to the database +| This allows you to use Leaf Db without having to initialize it +| in your controllers. +| +| This is optional, you can still use Leaf Db in your controllers. If you +| want to opt into this, just uncomment the line below. +| +*/ +// Leaf\Database::syncLeafDb(); + /* |-------------------------------------------------------------------------- | Initialise Config