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,