From da00017aec675b03201fab903847af04eed13702 Mon Sep 17 00:00:00 2001 From: Eduardo Aguad Date: Sun, 5 Nov 2023 19:14:39 -0300 Subject: [PATCH] add env to templates --- src/masonite/providers/ViewProvider.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/masonite/providers/ViewProvider.py b/src/masonite/providers/ViewProvider.py index 7bc20ab8e..c469a514c 100644 --- a/src/masonite/providers/ViewProvider.py +++ b/src/masonite/providers/ViewProvider.py @@ -2,6 +2,7 @@ from .Provider import Provider from ..helpers import UrlsHelper, MixHelper, optional from ..configuration import config +from ..environment import env class ViewProvider(Provider): @@ -24,6 +25,7 @@ def register(self): "config": config, "exists": view.exists, "optional": optional, + "env": env, } )