Skip to content

Commit aaa2e3a

Browse files
committed
Rename response "with" method to "withViewData"
1 parent 6a34559 commit aaa2e3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct($component, $props, $rootView = 'app', $sharedProps
2424
$this->version = $version;
2525
}
2626

27-
public function with($key, $value)
27+
public function withViewData($key, $value)
2828
{
2929
$this->viewData[$key] = $value;
3030

0 commit comments

Comments
 (0)