Skip to content

Commit

Permalink
Fix view composing event (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbardelmeijer authored Mar 8, 2022
1 parent 1870c5c commit f4968ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Node/EventNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

use Illuminate\Support\Str;
use Illuminate\View\View;
use Illuminate\View\ViewName;
use Twig\Compiler;
use Twig\Node\Node;

Expand All @@ -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,
Expand Down

0 comments on commit f4968ef

Please sign in to comment.