diff --git a/src/Http/SpladeMiddleware.php b/src/Http/SpladeMiddleware.php
index edc87609..5e9745ff 100644
--- a/src/Http/SpladeMiddleware.php
+++ b/src/Http/SpladeMiddleware.php
@@ -347,7 +347,8 @@ public static function extractDynamicsFromContent(string $content): array
})
->each(function (string $dynamicContent, string $name) use (&$content) {
$rendered = Blade::render(
- '',
+ '',
+ ['name' => $name]
);
$content = str_replace(