From f4968efb99537cc1b37c5bf20280614aadc31825 Mon Sep 17 00:00:00 2001 From: Michel Bardelmeijer Date: Tue, 8 Mar 2022 18:21:17 +0100 Subject: [PATCH] Fix view composing event (#422) --- src/Node/EventNode.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Node/EventNode.php b/src/Node/EventNode.php index fc97143..c09d9e1 100644 --- a/src/Node/EventNode.php +++ b/src/Node/EventNode.php @@ -5,6 +5,7 @@ use Illuminate\Support\Str; use Illuminate\View\View; +use Illuminate\View\ViewName; use Twig\Compiler; use Twig\Node\Node; @@ -30,7 +31,7 @@ public static function triggerLaravelEvents(string $templateName, array &$contex } /** @var \Illuminate\View\Factory $factory */ $env = resolve('view'); - $viewName = $templateName; + $viewName = ViewName::normalize($templateName); $view = new View( $env,