Skip to content

Commit

Permalink
Backoff render change
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmccreary committed Dec 11, 2024
1 parent ae03166 commit e3d13e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/Models/Statements/RenderStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,11 @@ public function output(): string

return $code;
}

private function buildParameters(): string
{
$parameters = array_map(fn ($parameter) => "'" . $parameter . "'", $this->data());

return implode(', ', $parameters);
}
}
2 changes: 1 addition & 1 deletion tests/fixtures/components/properties-statements.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function update()

return redirect()->route('user.show', [$this->user]);

return view('user.show', compact($this->user, $extra));
return view('user.show', compact('user', 'extra'));

return new UserResource($this->user);

Expand Down

0 comments on commit e3d13e1

Please sign in to comment.