Add db variable to twig

This commit is contained in:
slawkens 2025-05-14 13:37:23 +02:00
parent 7e4d28c648
commit 5ed1aec28e

View File

@ -122,6 +122,8 @@ try {
$eloquentConnection = $capsule->getConnection();
$twig->addGlobal('db', $db);
} catch (Exception $e) {
if(isset($cache) && $cache->enabled()) {
$cache->delete('config_lua');