Skip to content

Commit

Permalink
Revert "Update SpladeMiddleware.php"
Browse files Browse the repository at this point in the history
This reverts commit 4d4ac31.
  • Loading branch information
pascalbaljet committed Mar 12, 2024
1 parent 5948fd7 commit 254d732
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Http/SpladeMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ public static function extractDynamicsFromContent(string $content): array
})
->each(function (string $dynamicContent, string $name) use (&$content) {
$rendered = Blade::render(
'<x-splade-component is="dynamic-html" name="' . $name . '" />',
'<x-splade-component is="dynamic-html" :name="$name" />',
['name' => $name]
);

$content = str_replace(
Expand Down

0 comments on commit 254d732

Please sign in to comment.