From 75687a7ea9eab27006b8529b5e6dbcc2f962b9bf Mon Sep 17 00:00:00 2001 From: Michael Darko Date: Fri, 31 Dec 2021 15:48:01 +0000 Subject: [PATCH] :sparkles: added support for functional mode --- composer.json | 5 +++-- src/functions.php | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 src/functions.php diff --git a/composer.json b/composer.json index 48827d3..63b6fb8 100644 --- a/composer.json +++ b/composer.json @@ -27,6 +27,7 @@ "minimum-stability": "dev", "prefer-stable": true, "require": { - "ext-mysqli": "*" + "ext-mysqli": "*", + "leafs/form": "^1.0" } -} \ No newline at end of file +} diff --git a/src/functions.php b/src/functions.php new file mode 100644 index 0000000..88f721d --- /dev/null +++ b/src/functions.php @@ -0,0 +1,18 @@ +config('db.instance'))) { + $db = new \Leaf\Db; + app()->config('db.instance', $db); + } + + return app()->config('db.instance'); + } +}