Skip to content

Commit

Permalink
Passing data to layout of a Volt full page component
Browse files Browse the repository at this point in the history
  • Loading branch information
undjike authored Nov 6, 2024
1 parent 135e6b3 commit d1f7aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function render(): mixed
: Facades\View::make('volt-livewire::'.$alias, $data);

if ($layout) {
$view->layout($layout);
$view->layout($layout, $data);
}

if ($title) {
Expand Down

0 comments on commit d1f7aca

Please sign in to comment.