Skip to content

Commit 67c4e04

Browse files
committed
Ability to set the rootView
1 parent 8df786d commit 67c4e04

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Response.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ public function withViewData($key, $value = null)
5151
return $this;
5252
}
5353

54+
public function rootView($rootView)
55+
{
56+
$this->rootView = $rootView;
57+
58+
return $this;
59+
}
60+
5461
public function toResponse($request)
5562
{
5663
$only = array_filter(explode(',', $request->header('X-Inertia-Partial-Data')));

0 commit comments

Comments
 (0)