diff --git a/system/database.php b/system/database.php index b9dc6cc6..32877224 100644 --- a/system/database.php +++ b/system/database.php @@ -122,6 +122,8 @@ try { $eloquentConnection = $capsule->getConnection(); + $twig->addGlobal('db', $db); + } catch (Exception $e) { if(isset($cache) && $cache->enabled()) { $cache->delete('config_lua');